Fix S.T.Json holding integration instances live for long. (#13080)

This commit is contained in:
Pieter-Jan Briers
2022-12-19 03:09:50 +01:00
committed by GitHub
parent 4bfc644a03
commit 896ffec8d9
6 changed files with 36 additions and 4 deletions

View File

@@ -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();