コード例 #1
0
        public void MessageHandler(IdentityRoleRevoked message)
        {
            try
            {
                using (var subscriber = DependencyContainer.Resolve <IServiceIdentityProvider>())
                {
                    subscriber.Instance.InvalidateCachedIdentity(message.IdentityId);
                }
            }
            catch (Exception exception)
            {
                Log.Error("ApplicationServiceIdentityProviderFacade IdentityRoleRevoked Messaging Error: " + exception);

                // Rethrow exception so that MassTransit will place the message in an error queue
                throw;
            }
        }
コード例 #2
0
 public void Receive(IdentityRoleRevoked message)
 {
     InvalidateCachedIdentity(message.IdentityId);
 }