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