Ejemplo n.º 1
0
        private async Task <object> ExecuteAsync(IMessage message)
        {
            using (var unitOfWork = unitOfWorkFactory.NewUnitOfWork())
            {
                unitOfWork.Resolve <IClaimsWriter>().SetClaims(claims);;
                var messagebus = unitOfWork.Resolve <IMessageBus>();
                var response   = await messagebus.ExecuteAsync(message);

                var newClaims = browserclaimsProvider.OnResponse(response);
                if (newClaims != null)
                {
                    this.claims = newClaims;
                }
                return(response);
            }
        }