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()); }
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()); }