Exemple #1
0
        public SeqConnection(string serverUrl, string apiKey = null)
        {
            if (serverUrl == null) throw new ArgumentNullException(nameof(serverUrl));
            _client = new SeqApiClient(serverUrl, apiKey);
            
            _root = new Lazy<Task<RootEntity>>(() => _client.GetRootAsync());

        }
Exemple #2
0
        public SeqConnection(string serverUrl, string apiKey = null)
        {
            if (serverUrl == null)
            {
                throw new ArgumentNullException(nameof(serverUrl));
            }
            _client = new SeqApiClient(serverUrl, apiKey);

            _root = new Lazy <Task <RootEntity> >(() => _client.GetRootAsync());
        }