コード例 #1
0
 public IdentityController(IIdentityManager identityManager)
 {
     this.idManager = identityManager;
 }
コード例 #2
0
 public ModuleIdentityLifecycleManager(IIdentityManager identityManager, ModuleIdentityProviderServiceBuilder identityProviderServiceBuilder, Uri workloadUri)
 {
     this.identityManager = Preconditions.CheckNotNull(identityManager, nameof(identityManager));
     this.identityProviderServiceBuilder = Preconditions.CheckNotNull(identityProviderServiceBuilder, nameof(identityProviderServiceBuilder));
     this.workloadUri = Preconditions.CheckNotNull(workloadUri, nameof(workloadUri));
 }
コード例 #3
0
        public CoachService(IClubQuery clubQuery, IMemberQuery memberQuery, ICoachRepository coachRepository, IValidator <CoachRequest> validator, IIdentityManager identityManager)
        {
            ThrowIf.ArgumentIsNull(clubQuery);
            ThrowIf.ArgumentIsNull(coachRepository);
            ThrowIf.ArgumentIsNull(validator);

            this.clubQuery       = clubQuery;
            this.memberQuery     = memberQuery;
            this.coachRepository = coachRepository;
            this.validator       = validator;
            this.identityManager = identityManager;
        }
コード例 #4
0
 public DatabaseInitializer(ILogger <DatabaseInitializer> logger, PersistedGrantDbContext persistedGrantContext, ConfigurationDbContext configurationContext, EventDbContext eventsContext, IdentityDbContext accountsContext, IIdentityManager accountManager)
 {
     _logger = logger;
     _persistedGrantContext = persistedGrantContext;
     _configurationContext  = configurationContext;
     _eventContext          = eventsContext;
     _identityContext       = accountsContext;
     _identityManager       = accountManager;
 }
 public ImpersonateController(IAmpServiceLayer serviceLayer, IIdentityManager identityManager)
     : base(serviceLayer, identityManager)
 {
     this._ampServiceLayer = serviceLayer;
     this._identityManager = identityManager;
 }
コード例 #6
0
 internal SymbolType(string name, IIdentityManager manager)
 {
     this.name    = name;
     this.manager = manager;
 }
コード例 #7
0
 internal SymbolType(string name, string _namespace, IIdentityManager identityManager)
     : this(name, identityManager)
 {
     this._namespace = _namespace;
 }
コード例 #8
0
 public AccountController(ILogger <AccountController> l, IOptions <AppSettingsConfiguration> s, IIdentityManager m, IDBConnection d)
 {
     logger          = l;
     settings        = s.Value;
     identityManager = m;
     dbc             = d;
 }
コード例 #9
0
 public FileController(ILogger <FileController> logger, IDatabase database, IOptions <InternalConfig> config, IIdentityManager identityManager, IFilesHandler filesHandler, IDiscordAnnouncer discordAnnouncer)
 {
     this.logger           = logger;
     this.database         = database;
     this.config           = config;
     this.identityManager  = identityManager;
     this.filesHandler     = filesHandler;
     this.discordAnnouncer = discordAnnouncer;
 }
コード例 #10
0
 /// <summary>
 /// Creates a new <see cref="TypedName"/> with the
 /// <paramref name="name"/>, <paramref name="runtimeType"/>, <paramref name="identityManager"/>,
 /// <paramref name="direction"/>, and optional <paramref name="relativeSource"/>.
 /// </summary>
 /// <param name="name">The <see cref="System.String"/>
 /// which relates to the name of the <see cref="TypedName"/>.</param>
 /// <param name="runtimeType">The <see cref="RuntimeCoreType"/> relative to the
 /// identity of the type to retrieve from the <paramref name="identityManager"/>.</param>
 /// <param name="identityManager">The <see cref="IIdentityManager"/> responsible for
 /// disambiguating the <paramref name="runtimeType"/>.</param>
 /// <param name="direction">The <see cref="ParameterCoercionDirection"/>
 /// which indicates how the type should be directed.</param>
 /// <param name="relativeSource">The <see cref="IAssembly"/> relative to the
 /// <paramref name="runtimeType"/> used for context, which either contains the type
 /// or references the assembly containing the type.</param>
 public TypedName(string name, RuntimeCoreType runtimeType, IIdentityManager identityManager, ParameterCoercionDirection direction, IAssembly relativeSource = null)
     : this(name, identityManager.ObtainTypeReference(runtimeType, relativeSource), direction)
 {
 }
コード例 #11
0
 public UserAuthorizationServiceBuilder With(IIdentityManager identityManager)
 {
     _identityManager = identityManager;
     return(this);
 }
コード例 #12
0
 /// <summary>
 /// Creates a new <see cref="TypedName"/> with the
 /// <paramref name="name"/>, <paramref name="runtimeType"/>, <paramref name="identityManager"/>
 /// and optional <paramref name="relativeSource"/>.
 /// </summary>
 /// <param name="name">The <see cref="System.String"/>
 /// which relates to the name of the <see cref="TypedName"/>.</param>
 /// <param name="runtimeType">The <see cref="RuntimeCoreType"/> relative to the
 /// identity of the type to retrieve from the <paramref name="identityManager"/>.</param>
 /// <param name="identityManager">The <see cref="IIdentityManager"/> responsible for
 /// disambiguating the <paramref name="runtimeType"/>.</param>
 /// <param name="relativeSource">The <see cref="IAssembly"/> relative to the
 /// <paramref name="runtimeType"/> used for context, which either contains the type
 /// or references the assembly containing the type.</param>
 public TypedName(string name, RuntimeCoreType runtimeType, IIdentityManager identityManager, IAssembly relativeSource = null)
     : this(name, identityManager.ObtainTypeReference(runtimeType, relativeSource))
 {
 }
コード例 #13
0
 public AccountService(IIdentityManager identityManager, IIdentityProvider identityProvider, IEmailService emailService)
 {
     _identityManager  = identityManager;
     _identityProvider = identityProvider;
     _emailService     = emailService;
 }
コード例 #14
0
 public KubernetesModuleIdentityLifecycleManager(IIdentityManager identityManager, ModuleIdentityProviderServiceBuilder identityProviderServiceBuilder, Uri workloadUri)
     : base(identityManager, identityProviderServiceBuilder, workloadUri)
 {
 }
コード例 #15
0
		public AccountController(UserManager<ApplicationUser> userManager, IIdentityManager<ApplicationUser> roleManager)
		{
			this.UserManager = userManager ?? new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()));
			this.RoleManager = roleManager ?? new IdentityManager<ApplicationUser>(this.UserManager);
		} 
コード例 #16
0
ファイル: LogoutViewModel.cs プロジェクト: karimvally1/dotvvm
 public LogoutViewModel(IIdentityManager identityManager)
 {
     _identityManager = identityManager;
 }
コード例 #17
0
 internal SymbolType(IExpression sourceExpression, int tParamCount, IIdentityManager manager)
     : this(sourceExpression, manager, ExpandTParamNames(tParamCount))
 {
 }
コード例 #18
0
 public UserService(IIdentityManager unitOfWork)
 {
     db = unitOfWork;
 }
コード例 #19
0
 internal SymbolType(string name, IIdentityManager identityManager, int tParamCount)
     : this(name, identityManager, ExpandTParamNames(tParamCount))
 {
 }
コード例 #20
0
 public ProductCategoryService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics,
                               List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics,
                               List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics,
                               List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics,
                               List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics,
                               List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager,
                               IRestrictedItemAccessManager accessManager, IProductCategoryDataService categoryData,
                               IUnitOfWork unitOfWork, IFieldDefentionFacade fieldDefentionFacade, IMetaDataDataService metaDataService,
                               IProductDataService productDataService) : base(
         baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics,
         baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager,
         accessManager, categoryData)
 {
     _categoryData         = categoryData;
     _unitOfWork           = unitOfWork;
     _fieldDefentionFacade = fieldDefentionFacade;
     _metaDataService      = metaDataService;
     _productDataService   = productDataService;
 }
コード例 #21
0
 internal SymbolType(string name, int genericParameterCount, string _namespace, IIdentityManager identityManager)
     : this(name, identityManager, genericParameterCount)
 {
     this._namespace = _namespace;
 }
コード例 #22
0
 public GuildConfigController(ILogger <GuildConfigController> logger, IDatabase database, IOptions <InternalConfig> config, IIdentityManager identityManager, IDiscordAPIInterface discordInterface, IFilesHandler filesHandler)
 {
     this.logger          = logger;
     this.database        = database;
     this.config          = config;
     this.identityManager = identityManager;
     this.discord         = discordInterface;
     this.filesHandler    = filesHandler;
 }
 public ImpersonateController()
     : base()
 {
     this._ampServiceLayer = new AMPServiceLayer();
     this._identityManager = new DemoIdentityManager();
 }
コード例 #24
0
 public ModCaseTableController(ILogger <ModCaseTableController> logger, IDatabase database, IOptions <InternalConfig> config, IIdentityManager identityManager, IDiscordAPIInterface discordInterface, IDiscordAnnouncer modCaseAnnouncer, IFilesHandler filesHandler, IPunishmentHandler punishmentHandler)
 {
     this.logger            = logger;
     this.database          = database;
     this.config            = config;
     this.identityManager   = identityManager;
     this.discordAnnouncer  = modCaseAnnouncer;
     this.discord           = discordInterface;
     this.filesHandler      = filesHandler;
     this.punishmentHandler = punishmentHandler;
 }
コード例 #25
0
 public CategoryService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, ICategoryDataService dataSrv, IUnitOfWork unitOfWork, IUrlBuilder urlBuilder, IFieldDefentionFacade fieldDefentionFacade, IMetaDataDataService metaDataService, IEntityDataService entityDataService) : base(baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, dataSrv)
 {
     _dataSrv              = dataSrv;
     _unitOfWork           = unitOfWork;
     _urlBuilder           = urlBuilder;
     _fieldDefentionFacade = fieldDefentionFacade;
     _metaDataService      = metaDataService;
     _entityDataService    = entityDataService;
 }
コード例 #26
0
 public EntityService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics,
                      List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics,
                      List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics,
                      List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics,
                      List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics,
                      List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager,
                      IRestrictedItemAccessManager accessManager, IEntityDataService dataSrv, ISecurityLogger securityLogger,
                      IEntityFacade entityFacade, IUnitOfWork unitOfWork)
     : base(
         baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics,
         baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager,
         accessManager, dataSrv)
 {
     _dataSrv        = dataSrv;
     _securityLogger = securityLogger;
     _entityFacade   = entityFacade;
     _unitOfWork     = unitOfWork;
 }
コード例 #27
0
 public IdentityService(IIdentityManager manager)
 {
     _manager = manager;
 }
コード例 #28
0
 public NotificationControllerNew(IIdentityManager accountManager, IHttpContextAccessor httpAccessor, IMapper mapper, IUnitOfWork <EventDbContext> unitOfWork, ILogger <NotificationController> logger)
 {
     _notificationHelper = new EntityControllerHelper <Notification>(accountManager, httpAccessor, mapper, unitOfWork, logger);
     _notificationHelper.GetIncludeEvent += NotificationController_GetIncludeEvent;
 }
コード例 #29
0
 public LogActionFilter(ILogManager logManager, IApplicationManager applicationManager, IIdentityManager identityManager)
 {
     _logManager         = logManager;
     _applicationManager = applicationManager;
     _identityManager    = identityManager;
 }
コード例 #30
0
        //private IClassType baseType;

        internal SymbolType(IExpression sourceExpression, IIdentityManager manager)
        {
            this.sourceExpression = sourceExpression;
            this.sourceSelector   = ExpressionSelection;
            this.manager          = manager;
        }
コード例 #31
0
 public DataInitialization(IIdentityManager identityManager, IMediator mediator)
 {
     this.IdentityManager = identityManager;
     this.Mediator        = mediator;
 }
コード例 #32
0
 public IdentityService(IIdentityManager manager)
 {
     _manager = manager;
 }