Ejemplo n.º 1
0
        ///// <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 UnleashSampleService(
     UnleashSampleServiceState state,
     IUnleashContextProvider unleashContextProvider,
     IUnleash unleash,
     IOptions <UnleashSampleServiceOptions> options,
     ILogger <UnleashSampleService> logger)
 {
     State = state;
     UnleashContextProvider = unleashContextProvider;
     Unleash = unleash;
     Options = options.Value;
     Logger  = logger;
 }
 public TestController(IUnleash unleash, IUnleashContextProvider contextProvider)
 {
     Unleash         = unleash;
     ContextProvider = contextProvider;
 }
 public UnleashMvcActionFilter(IUnleashContextProvider contextProvider)
 {
     ContextProvider = contextProvider;
 }
Ejemplo n.º 5
0
 public ActionResult <Dictionary <string, string> > Keys(IUnleashContextProvider contextProvider)
 {
     return(contextProvider.Context.Properties);
 }