/// <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); }
/// <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)); }