Fix S.T.Json holding integration instances live for long. (#13080)
This commit is contained in:
committed by
GitHub
parent
4bfc644a03
commit
896ffec8d9
@@ -3,8 +3,17 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Content.Server.Administration.Logs.Converters;
|
||||
|
||||
public abstract class AdminLogConverter<T> : JsonConverter<T>
|
||||
public interface IAdminLogConverter
|
||||
{
|
||||
void Init(IDependencyCollection dependencies);
|
||||
}
|
||||
|
||||
public abstract class AdminLogConverter<T> : JsonConverter<T>, IAdminLogConverter
|
||||
{
|
||||
public virtual void Init(IDependencyCollection dependencies)
|
||||
{
|
||||
}
|
||||
|
||||
public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
|
||||
Reference in New Issue
Block a user