Exemple #1
0
 public static IClientSettingsBuilder UseSerializer <T>(this IClientSettingsBuilder builder)
     where T : class, IContentSerializer
 {
     return(builder.UseSerializer(typeof(T)));
 }
Exemple #2
0
 public static IClientSettingsBuilder UseJsonSerializer(this IClientSettingsBuilder builder,
                                                        JsonSerializerSettings settings)
 {
     return(builder.UseSerializer(new JsonContentSerializer(settings)));
 }
Exemple #3
0
 public static IClientSettingsBuilder UseKeyValueSerializer(this IClientSettingsBuilder builder)
 {
     return(builder.UseSerializer(new KeyValueContentSerializer()));
 }
Exemple #4
0
 public static IClientSettingsBuilder UseXmlSerializer(this IClientSettingsBuilder builder,
                                                       XmlReaderSettings readerSettings, XmlWriterSettings writerSettings)
 {
     return(builder.UseSerializer(new XmlContentSerializer(readerSettings, writerSettings)));
 }