public AndyXProvider(string url, string tenant, string product, string token) { _andyXClient = new AndyXClient(url) .Tenant(tenant) .Product(product) .Token(token); _andyXClient.BuildAsync(); }
public AndyXProvider(IConfiguration configuration, HttpClientHandler httpHandler, ILoggerFactory loggerFactory) { isClientBuilt = false; _andyXClient = new AndyXClient(configuration["AndyX:Url"], loggerFactory) .HttpClientHandler(httpHandler) .Tenant(configuration["AndyX:Tenant"]) .Product(configuration["AndyX:Product"]) .Token(configuration["AndyX:Token"]); isClientBuilt = _andyXClient.BuildAsync().Result; }