コード例 #1
0
 public async Task HandleAsync(ApiKeyCreated @event)
 {
     await _userFeaturesManager.IncreaseFeatureUsageAsync(@event.UserId, FeatureType.AddApiKey);
 }
コード例 #2
0
 public async Task HandleAsync(WardenCreated @event)
 {
     await _userFeaturesManager.IncreaseFeatureUsageAsync(@event.UserId, FeatureType.AddWarden);
 }
コード例 #3
0
 public async Task HandleAsync(WardenCheckResultProcessed @event)
 {
     await _userFeaturesManager.IncreaseFeatureUsageAsync(@event.UserId, FeatureType.AddWardenCheck);
 }
コード例 #4
0
 public async Task HandleAsync(OrganizationCreated @event)
 {
     await _userFeaturesManager.IncreaseFeatureUsageAsync(@event.UserId, FeatureType.AddOrganization);
 }