示例#1
0
 /// <summary>
 /// Uses <see cref="BlazorSimpleJsonSerializer"/> to serialize requests
 /// </summary>
 /// <param name="config"></param>
 public static ClientConfiguration UseBlazorSimpleJsonSerializer(this ClientConfiguration config)
 {
     return(config.UseSerializer <BlazorSimpleJsonSerializer>());
 }
 /// <summary>
 /// Uses <see cref="JSInteropJsonSerializer"/> to serialize requests
 /// </summary>
 /// <param name="config"></param>
 public static ClientConfiguration UseJSInteropJsonSerializer(this ClientConfiguration config)
 {
     return(config.UseSerializer <JSInteropJsonSerializer>());
 }
示例#3
0
 /// <summary>
 /// Uses <see cref="ProtobufSerializer"/> to serialize and deserialize requests
 /// </summary>
 /// <param name="config"></param>
 public static ClientConfiguration UseProtobufSerializer(this ClientConfiguration config)
 {
     return(config.UseSerializer <ProtobufSerializer>());
 }
 /// <summary>
 /// Uses <see cref="MessagePackSerializer"/> to serialize requests
 /// </summary>
 /// <param name="config"></param>
 public static ClientConfiguration UseMessagePackSerializer(this ClientConfiguration config)
 {
     return(config.UseSerializer <AspNetCore.Client.Serializers.MessagePackSerializer>());
 }