/// <summary> /// Uses <see cref="BlazorSimpleJsonSerializer"/> to deserialize requests when Json is detected /// </summary> /// <param name="config"></param> /// <returns></returns> public static ClientConfiguration UseBlazorSimpleJsonDeserializer(this ClientConfiguration config) { return(config.UseDeserializer <BlazorSimpleJsonSerializer>()); }
/// <summary> /// Uses <see cref="JSInteropJsonSerializer"/> to deserialize requests when Json is detected /// </summary> /// <param name="config"></param> /// <returns></returns> public static ClientConfiguration UseJSInteropJsonDeserializer(this ClientConfiguration config) { return(config.UseDeserializer <JSInteropJsonSerializer>()); }
/// <summary> /// Uses <see cref="ProtobufSerializer"/> to deserialize requests when Protobuf content type is detected /// </summary> /// <param name="config"></param> public static ClientConfiguration UseProtobufDeserializer(this ClientConfiguration config) { return(config.UseDeserializer <ProtobufSerializer>()); }
/// <summary> /// Uses <see cref="MessagePackSerializer"/> to deserialize requests when MessagePack content-type is detected /// </summary> /// <param name="config"></param> public static ClientConfiguration UseMessagePackDeserializer(this ClientConfiguration config) { return(config.UseDeserializer <AspNetCore.Client.Serializers.MessagePackSerializer>()); }