private PocoRuntime() { Grammar = new ODataGrammar(); UsePluralUrls = true; UriBuilder = new EntityUriBuilder(); RequestSetup = (request) => {}; DisposeHandler = true; CustomFormatters = new MediaTypeFormatter[0]; }
public PocoConfiguration() { Grammar = new ODataGrammar(); UsePluralUrls = true; UriBuilder = new EntityUriBuilder(); RequestSetup = (request) => {}; DisposeHandler = true; CustomFormatters = new MediaTypeFormatter[0]; ResponseReader = (response, formatters, type) => { return response.Content.ReadAsAsync( typeof(IEnumerable<>).MakeGenericType(type), formatters); }; }