コード例 #1
0
ファイル: RecordError.cs プロジェクト: reiteristvan/Authority
 public RecordError(IAuthorityContext AuthorityContext, string type, string message, string stacktrace)
     : base(AuthorityContext)
 {
     _type       = type;
     _message    = message;
     _stacktrace = stacktrace;
 }
コード例 #2
0
 public CreatePolicy(IAuthorityContext AuthorityContext, Guid userId, Guid productId, string name)
     : base(AuthorityContext)
 {
     _userId    = userId;
     _productId = productId;
     _name      = name;
 }
コード例 #3
0
 public CreateStatementCommandHandler(IDoctrinaDbContext context, IMediator mediator, IMapper mapper, IAuthorityContext currentAuthority)
 {
     _context          = context;
     _mediator         = mediator;
     _mapper           = mapper;
     _authorityContext = currentAuthority;
 }
コード例 #4
0
 public DeveloperRegistration(IAuthorityContext AuthorityContext, string email, string displayname, string password)
     : base(AuthorityContext)
 {
     _email           = email;
     _displayname     = displayname;
     _password        = password;
     _passwordService = new PasswordService();
 }
コード例 #5
0
 public DeveloperService(
     IAuthorityContext AuthorityContext,
     IEmailService emailService,
     IConfiguration configuration)
 {
     _AuthorityContext = AuthorityContext;
     _emailService     = emailService;
     _configuration    = configuration;
 }
コード例 #6
0
 public UpdateProduct(IAuthorityContext AuthorityContext,
                      string name, bool isActive, bool isPublic, string siteUrl, string landingPage)
     : base(AuthorityContext)
 {
     _name        = name;
     _isPublic    = isPublic;
     _siteUrl     = siteUrl;
     _landingPage = landingPage;
     _isActive    = isActive;
 }
コード例 #7
0
 public UserRegistration(IAuthorityContext authorityContext,
                         Guid productId, string email, string username, string password)
     : base(authorityContext)
 {
     _productId       = productId;
     _email           = email;
     _username        = username;
     _password        = password;
     _passwordService = new PasswordService();
 }
コード例 #8
0
 public CreateProduct(IAuthorityContext AuthorityContext,
                      Guid ownerId,
                      string name,
                      string siteUrl,
                      string notificationEmail,
                      string activationUrl)
     : base(AuthorityContext)
 {
     _ownerId           = ownerId;
     _name              = name;
     _siteUrl           = siteUrl;
     _notificationEmail = notificationEmail;
     _activationUrl     = activationUrl;
 }
コード例 #9
0
 public ExperienceApiAuthenticationHandler(
     IOptionsMonitor <ExperienceApiAuthenticationOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     DoctrinaAuthorizationDbContext authorizationDbContext,
     IAuthorityContext authority,
     IWebHostEnvironment environment
     ) : base(options, logger, encoder, clock)
 {
     _authorizationDbContext = authorizationDbContext;
     _authority   = authority;
     _environment = environment;
 }
コード例 #10
0
        public AccountService(IAuthorityContext authorityContext, IEmailService emailService)
        {
            if (authorityContext == null)
            {
                throw new ArgumentNullException("authorityContext");
            }

            if (emailService == null)
            {
                throw new ArgumentNullException("emailService");
            }

            _authorityContext = authorityContext;
            _emailService     = emailService;
        }
コード例 #11
0
 protected SafeOperationWithNoReturnAsync(IAuthorityContext authorityContext)
     : base(authorityContext)
 {
 }
コード例 #12
0
 public ClaimService(IAuthorityContext AuthorityContext)
 {
     _AuthorityContext = AuthorityContext;
 }
コード例 #13
0
 public PolicyService(IAuthorityContext AuthorityContext)
 {
     _authorityContext = AuthorityContext;
 }
コード例 #14
0
 public ProductService(IAuthorityContext authorityContext)
 {
     _authorityContext = authorityContext;
 }
コード例 #15
0
 public CreateClaimForProduct(IAuthorityContext AuthorityContext)
     : base(AuthorityContext)
 {
 }
コード例 #16
0
 public DeleteProduct(IAuthorityContext AuthorityContext)
     : base(AuthorityContext)
 {
 }
コード例 #17
0
 protected OperationWithNoReturn(IAuthorityContext authorityContext,
                                 IsolationLevel isolationLevel = IsolationLevel.ReadCommitted)
     : base(authorityContext, isolationLevel)
 {
 }
コード例 #18
0
 public DeveloperActivation(IAuthorityContext authorityContext, Guid activationCode)
     : base(authorityContext)
 {
     _activationCode = activationCode;
 }
コード例 #19
0
 public UserActivation(IAuthorityContext authorityContext, Guid productId, Guid activationCode)
     : base(authorityContext)
 {
     _productId      = productId;
     _activationCode = activationCode;
 }
コード例 #20
0
 public ToggleProductPublish(IAuthorityContext context, Guid ownerId, Guid productId)
     : base(context)
 {
     _ownerId   = ownerId;
     _productId = productId;
 }
コード例 #21
0
 protected Operation(IAuthorityContext AuthorityContext,
                     IsolationLevel isolationLevel = IsolationLevel.ReadCommitted)
 {
     _authorityContext = AuthorityContext;
     _authorityContext.BeginTransaction(isolationLevel);
 }
コード例 #22
0
 public ErrorService(IAuthorityContext AuthorityContext)
 {
     _authorityContext = AuthorityContext;
 }