public CurlBuilder(SaveRequestOptions options) { Options = options; }
/// <summary> /// Adds the services for curl middleware /// </summary> /// <param name="services">Service Collection</param> /// <param name="options">Parameters for the curl builder</param> /// <returns></returns> public static IServiceCollection AddSaveAsCurlMiddlewareServices(this IServiceCollection services, SaveRequestOptions options = null) { services.AddSingleton <IRequestBuilder>(c => new CurlBuilder(options)); return(services); }