Esempio n. 1
0
            public OkResult Handle(ApiOperationContext context, IDependency dependency, IUserAuthorisationContext user)
            {
                Context    = context;
                Dependency = dependency;
                User       = user;

                return(new OkResult(nameof(InlineHandle)));
            }
 public UserExceptionIdentifier(IUserAuthorisationContext context)
 {
     if (context == null)
     {
         this.IsAnonymous = true;
     }
     else
     {
         this.IsAnonymous = context.IsAnonymous;
         this.Id          = context.Id;
         this.Email       = context.Email;
         this.Name        = context.Name;
     }
 }