///// <summary> ///// Initializes a new instance of Unleash client. ///// </summary> public Unleash(UnleashSettings settings, IUnleashServices services, IUnleashContextProvider contextProvider) { this.settings = settings; this.services = services ?? throw new ArgumentNullException(nameof(services)); this.contextProvider = contextProvider ?? throw new ArgumentNullException(nameof(contextProvider)); Logger.Info($"UNLEASH: Unleash is initialized and configured with: {settings}"); }
public WebHostControlledLifetimeStartupFilter( IUnleashServices unleashServices, IHostingEnvironment hostingEnvironment, IApplicationLifetime applicationLifetime) { this.unleashServices = unleashServices; this.hostingEnvironment = hostingEnvironment; this.applicationLifetime = applicationLifetime; }
public SynchronousFlagLoadingStartupFilter( IServiceProvider serviceProvider, IUnleashServices unleashServices, bool onlyOnEmptyCache, TimeSpan timeout) { Timeout = timeout; this.serviceProvider = serviceProvider; this.unleashServices = unleashServices; this.onlyOnEmptyCache = onlyOnEmptyCache; }
public SynchronousFlagLoadingService(IServiceProvider serviceProvider, IUnleashServices unleashServices, IOptions <SynchronousFlagLoadingServiceOptions> synchronousFlagLoadingServiceOptions) { this.serviceProvider = serviceProvider; this.unleashServices = unleashServices; this.synchronousFlagLoadingServiceOptions = synchronousFlagLoadingServiceOptions.Value; }
public HostControlledLifetimeService(IServiceProvider serviceProvider, IUnleashServices unleashServices) { this.serviceProvider = serviceProvider; this.unleashServices = unleashServices; }