示例#1
0
 private void Configure(ISlumberConfiguration configuration)
 {
     configuration.UseJsonSerialization(Customise).UseHttp(http => Customise(http, configuration));
     if (!_debug)
     {
         return;
     }
     configuration.UseConsoleLogger();
     _configuration = configuration;
 }
示例#2
0
 private void Customise(Http http, ISlumberConfiguration configuration)
 {
     http.UseJsonAsDefaultContentType();
 }