public HalOutputFormatter(JsonSerializerSettings serializerSettings, ArrayPool <char> charPool)
     : base(HalJsonSerializerSettingsProvider.AppendHalConverters(serializerSettings), charPool)
 {
     SupportedMediaTypes.Add(new MediaTypeHeaderValue(HalJsonSerializerSettingsProvider.HalMediaType));
 }
Beispiel #2
0
 public HalInputFormatter(ILogger logger, JsonSerializerSettings serializerSettings, ArrayPool <char> charPool, ObjectPoolProvider objectPoolProvider)
     : base(logger, HalJsonSerializerSettingsProvider.AppendHalConverters(serializerSettings), charPool, objectPoolProvider)
 {
     SupportedMediaTypes.Add(new MediaTypeHeaderValue(HalJsonSerializerSettingsProvider.HalMediaType));
 }
 public HalOutputFormatter()
     : this(HalJsonSerializerSettingsProvider.CreateDefaultSerializerSettings(), ArrayPool <char> .Shared)
 {
 }
Beispiel #4
0
 public HalInputFormatter(ILogger logger)
     : this(logger, HalJsonSerializerSettingsProvider.CreateDefaultSerializerSettings(), ArrayPool <char> .Shared, new DefaultObjectPoolProvider())
 {
 }