public UsageMiddleware(IAppLogStore usageLog, IApiUsageTracker usageTracker, IClock clock) { this.usageLog = usageLog; this.usageTracker = usageTracker; this.clock = clock; }
public UsageTrackerGrain(IGrainState <State> state, IApiUsageTracker usageTracker) { Guard.NotNull(state, nameof(state)); Guard.NotNull(usageTracker, nameof(usageTracker)); this.state = state; this.usageTracker = usageTracker; }
public ApiCostsFilter(IAppPlansProvider appPlansProvider, IApiUsageTracker usageTracker) { Guard.NotNull(appPlansProvider); Guard.NotNull(usageTracker); this.appPlansProvider = appPlansProvider; this.usageTracker = usageTracker; }
public UsageGate(IAppPlansProvider appPlansProvider, IApiUsageTracker apiUsageTracker, IGrainFactory grainFactory) { Guard.NotNull(apiUsageTracker, nameof(apiUsageTracker)); Guard.NotNull(appPlansProvider, nameof(appPlansProvider)); Guard.NotNull(grainFactory, nameof(grainFactory)); this.appPlansProvider = appPlansProvider; this.apiUsageTracker = apiUsageTracker; this.grainFactory = grainFactory; }
public UsageGate(IAppPlansProvider appPlansProvider, IApiUsageTracker apiUsageTracker, IGrainFactory grainFactory) { Guard.NotNull(apiUsageTracker, nameof(apiUsageTracker)); Guard.NotNull(appPlansProvider, nameof(appPlansProvider)); Guard.NotNull(grainFactory, nameof(grainFactory)); this.appPlansProvider = appPlansProvider; this.apiUsageTracker = apiUsageTracker; usageLimitNotifier = grainFactory.GetGrain <IUsageNotifierGrain>(SingleGrain.Id); }
public UsageMiddleware(IAppLogStore usageLog, IApiUsageTracker usageTracker, IClock clock) { Guard.NotNull(usageLog, nameof(usageLog)); Guard.NotNull(usageTracker, nameof(usageTracker)); Guard.NotNull(clock, nameof(clock)); this.usageLog = usageLog; this.usageTracker = usageTracker; this.clock = clock; }
public UsageMiddleware(IAppLogStore logStore, IApiUsageTracker usageTracker, IClock clock) { Guard.NotNull(logStore, nameof(logStore)); Guard.NotNull(usageTracker, nameof(usageTracker)); Guard.NotNull(clock, nameof(clock)); this.logStore = logStore; this.usageTracker = usageTracker; this.clock = clock; }
public UsageMiddleware(IAppLogStore log, IApiUsageTracker usageTracker, IClock clock) { Guard.NotNull(log); Guard.NotNull(usageTracker); Guard.NotNull(clock); this.log = log; this.usageTracker = usageTracker; this.clock = clock; }
public UsagesController( ICommandBus commandBus, IApiUsageTracker usageTracker, IAppLogStore appLogStore, IAppPlansProvider appPlansProvider, IAssetUsageTracker assetStatsRepository, IDataProtectionProvider dataProtection, IOptions <UrlsOptions> urlsOptions) : base(commandBus) { this.usageTracker = usageTracker; this.appLogStore = appLogStore; this.appPlansProvider = appPlansProvider; this.assetStatsRepository = assetStatsRepository; this.urlsOptions = urlsOptions.Value; dataProtector = dataProtection.CreateProtector("LogToken"); }
public UsageGate(IAppPlansProvider appPlansProvider, IApiUsageTracker apiUsageTracker, IGrainFactory grainFactory) { this.appPlansProvider = appPlansProvider; this.apiUsageTracker = apiUsageTracker; this.grainFactory = grainFactory; }
public UsageTrackerGrain(IGrainState <State> state, IApiUsageTracker usageTracker) { this.state = state; this.usageTracker = usageTracker; }
public AppUsageDeleter(IApiUsageTracker apiUsageTracker) { this.apiUsageTracker = apiUsageTracker; }