public StatusIoNetwork(StatusIoConfiguration configuration) { this.configuration = configuration; httpClient = new HttpClient { Timeout = configuration.Timeout }; SetHeaders(httpClient.DefaultRequestHeaders); }
public StatusIoClient(StatusIoConfiguration configuration) { Configuration = configuration; network = new StatusIoNetwork(configuration); components = new ComponentApi(this); incidents = new IncidentApi(this); maintenance = new MaintenanceApi(this); metrics = new MetricApi(this); status = new StatusApi(this); subscribers = new SubscriberApi(this); }