Пример #1
0
 /// <summary>
 /// Handle password changed event
 /// </summary>
 /// <param name="eventMessage">Event message</param>
 /// <returns>A task that represents the asynchronous operation</returns>
 public async Task HandleEventAsync(CustomerPasswordChangedEvent eventMessage)
 {
     await RemoveAsync(NopCustomerServicesDefaults.CustomerPasswordLifetimeCacheKey, eventMessage.Password.CustomerId);
 }
Пример #2
0
 /// <summary>
 /// Handle password changed event
 /// </summary>
 /// <param name="eventMessage">Event message</param>
 public void HandleEvent(CustomerPasswordChangedEvent eventMessage)
 {
     Remove(NopCustomerServiceCachingDefaults.CustomerPasswordLifetimeCacheKey.FillCacheKey(eventMessage.Password.CustomerId));
 }
 /// <summary>
 /// Handle password changed event
 /// </summary>
 /// <param name="eventMessage">Event message</param>
 public void HandleEvent(CustomerPasswordChangedEvent eventMessage)
 {
     Remove(_cacheKeyService.PrepareKey(NopCustomerServicesDefaults.CustomerPasswordLifetimeCacheKey, eventMessage.Password.CustomerId));
 }