Esempio n. 1
0
 public IdentityController(IIdentityManager identityManager)
 {
     this.idManager = identityManager;
 }
Esempio n. 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));
 }
Esempio n. 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;
        }
Esempio n. 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;
 }
Esempio n. 6
0
 internal SymbolType(string name, IIdentityManager manager)
 {
     this.name    = name;
     this.manager = manager;
 }
Esempio n. 7
0
 internal SymbolType(string name, string _namespace, IIdentityManager identityManager)
     : this(name, identityManager)
 {
     this._namespace = _namespace;
 }
Esempio n. 8
0
 public AccountController(ILogger <AccountController> l, IOptions <AppSettingsConfiguration> s, IIdentityManager m, IDBConnection d)
 {
     logger          = l;
     settings        = s.Value;
     identityManager = m;
     dbc             = d;
 }
Esempio n. 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;
 }
Esempio n. 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)
 {
 }
 public UserAuthorizationServiceBuilder With(IIdentityManager identityManager)
 {
     _identityManager = identityManager;
     return(this);
 }
Esempio n. 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))
 {
 }
Esempio n. 13
0
 public AccountService(IIdentityManager identityManager, IIdentityProvider identityProvider, IEmailService emailService)
 {
     _identityManager  = identityManager;
     _identityProvider = identityProvider;
     _emailService     = emailService;
 }
 public KubernetesModuleIdentityLifecycleManager(IIdentityManager identityManager, ModuleIdentityProviderServiceBuilder identityProviderServiceBuilder, Uri workloadUri)
     : base(identityManager, identityProviderServiceBuilder, workloadUri)
 {
 }
		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);
		} 
Esempio n. 16
0
 public LogoutViewModel(IIdentityManager identityManager)
 {
     _identityManager = identityManager;
 }
Esempio n. 17
0
 internal SymbolType(IExpression sourceExpression, int tParamCount, IIdentityManager manager)
     : this(sourceExpression, manager, ExpandTParamNames(tParamCount))
 {
 }
Esempio n. 18
0
 public UserService(IIdentityManager unitOfWork)
 {
     db = unitOfWork;
 }
Esempio n. 19
0
 internal SymbolType(string name, IIdentityManager identityManager, int tParamCount)
     : this(name, identityManager, ExpandTParamNames(tParamCount))
 {
 }
Esempio n. 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;
 }
Esempio n. 21
0
 internal SymbolType(string name, int genericParameterCount, string _namespace, IIdentityManager identityManager)
     : this(name, identityManager, genericParameterCount)
 {
     this._namespace = _namespace;
 }
 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();
 }
 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;
 }
 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;
 }
 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;
 }
 public IdentityService(IIdentityManager manager)
 {
     _manager = manager;
 }
Esempio n. 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;
 }
Esempio n. 29
0
 public LogActionFilter(ILogManager logManager, IApplicationManager applicationManager, IIdentityManager identityManager)
 {
     _logManager         = logManager;
     _applicationManager = applicationManager;
     _identityManager    = identityManager;
 }
Esempio n. 30
0
        //private IClassType baseType;

        internal SymbolType(IExpression sourceExpression, IIdentityManager manager)
        {
            this.sourceExpression = sourceExpression;
            this.sourceSelector   = ExpressionSelection;
            this.manager          = manager;
        }
 public DataInitialization(IIdentityManager identityManager, IMediator mediator)
 {
     this.IdentityManager = identityManager;
     this.Mediator        = mediator;
 }
 public IdentityService(IIdentityManager manager)
 {
     _manager = manager;
 }