Exemplo n.º 1
0
        public StatusIoNetwork(StatusIoConfiguration configuration)
        {
            this.configuration = configuration;
            httpClient         = new HttpClient {
                Timeout = configuration.Timeout
            };

            SetHeaders(httpClient.DefaultRequestHeaders);
        }
Exemplo n.º 2
0
        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);
        }