Exemple #1
0
		public CountryController(
			ICountryService countries,
			IIdentityService identity)
		{
			_countries = countries;
			_identity = identity;
		}
Exemple #2
0
		public ChatController(
			IIdentityService identity,
			IUserRepository users)
		{
			_identity = identity;
			_users = users;
		}
Exemple #3
0
		public CityController(
			ICityService cities,
			IIdentityService identity)
		{
			_cities = cities;
			_identity = identity;
		}
 public UserController(
     IIdentityService identityService,
     IMapper<string, string, LoginPageViewModel> loginPageViewModelMapper)
 {
     this.identityService = identityService;
     this.loginPageViewModelMapper = loginPageViewModelMapper;
 }
 public AccountService(IIdentityService identityService, ISuspensionManagerState suspensionManagerState, ICredentialStore credentialStore)
 {
     _identityService = identityService;
     _suspensionManagerState = suspensionManagerState;
     _credentialStore = credentialStore;
     if (_suspensionManagerState != null)
     {
         if (_suspensionManagerState.SessionState.ContainsKey(ServerCookieHeaderKey))
         {
             _serverCookieHeader = _suspensionManagerState.SessionState[ServerCookieHeaderKey] as string;
         }
         if (_suspensionManagerState.SessionState.ContainsKey(SignedInUserKey))
         {
             _signedInUser = _suspensionManagerState.SessionState[SignedInUserKey] as UserInfo;
         }
         if (_suspensionManagerState.SessionState.ContainsKey(UserNameKey))
         {
             _userName = _suspensionManagerState.SessionState[UserNameKey].ToString();
         }
         if (_suspensionManagerState.SessionState.ContainsKey(PasswordKey))
         {
             _password = _suspensionManagerState.SessionState[PasswordKey].ToString();
         }
     }
 }
		public SenderCalculationController(ISenderCalculationPresenter presenter, ISenderRepository senders,
			IIdentityService identity)
		{
			_presenter = presenter;
			_senders = senders;
			_identity = identity;
		}
Exemple #7
0
		public ClientPermissions(
			IIdentityService identity,
			IClientRepository clients)
		{
			_identity = identity;
			_clients = clients;
		}
Exemple #8
0
		public CarrierController(ICityRepository cities, ICarrierRepository carriers, IIdentityService identity, IUserRepository users)
		{
			_cities = cities;
			_carriers = carriers;
			_identity = identity;
			_users = users;
		}
 /// <summary>
 ///     Initializes a new instance of the SecondViewModel class.
 /// </summary>
 public SecondViewModel(IDataService dataService, IIdentityService identityService)
 {
     UserName = "******";
     Password = "******";
     _dataService = dataService;
     _identityService = identityService;
     _configuration = new Configuration();
 }
Exemple #10
0
 public IdentityViewModel(DiteService diteService, INavigationService navigationService,
     IComponentFactory factory, IMessengerService messengerService, IIdentityService identityService)
     : base(factory, messengerService)
 {
     _diteService = diteService;
     _navigationService = navigationService;
     _identityService = identityService;
 }
Exemple #11
0
		public StateController(
			IStateRepository states,
			ITemplateRepository templates,
			IIdentityService identity)
		{
			_states = states;
			_templates = templates;
			_identity = identity;
		}
		public StateSettingsController(
			IIdentityService identity,
			IStateSettingsRepository settings,
			IStateRepository states)
		{
			_identity = identity;
			_settings = settings;
			_states = states;
		}
Exemple #13
0
		public TransitController(
			IIdentityService identity,
			ICityRepository cities,
			ITransitRepository transits)
		{
			_identity = identity;
			_cities = cities;
			_transits = transits;
		}
 protected ProfileCheckBaseAttribute(
     string redirectController,
     string redirectAction)
 {
     this.redirectController = redirectController;
     this.redirectAction = redirectAction;
     this.identityService = ServiceLocator.Current.GetInstance<IIdentityService>();
     this.profileTasks = ServiceLocator.Current.GetInstance<IProfileTasks>();
 }
		public EmailTemplateController(
			ITemplateRepository templates,
			IEventEmailRecipient recipients,
			IIdentityService identity)
		{
			_templates = templates;
			_recipients = recipients;
			_identity = identity;
		}
Exemple #16
0
		public SenderController(
			ISenderService senders,
			IIdentityService identity,
			ICountryRepository countries)
		{
			_senders = senders;
			_identity = identity;
			_countries = countries;
		}
        public OAuthOptions(IIdentityService identityService)
        {
            var config = AppConfiguration.Config;

            TokenEndpointPath = new PathString(config.TokenPath);
            AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(config.ExpirationMinutes);
            AccessTokenFormat = new JwtWriterFormat(this);
            Provider = new OAuthProvider(identityService);
            AllowInsecureHttp = true;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="IdentityV2AuthenticationService"/> class with the specified
        /// OpenStack Identity Service V2 client and prepared authentication request.
        /// </summary>
        /// <param name="identityService">The <see cref="IIdentityService"/> instance to use for authentication
        /// purposes.</param>
        /// <param name="authenticationRequest">The authentication request, which contains the credentials to use for
        /// authenticating with the OpenStack Identity Service V2.</param>
        /// <exception cref="ArgumentNullException">
        /// <para>If <paramref name="identityService"/> is <see langword="null"/>.</para>
        /// <para>-or-</para>
        /// <para>If <paramref name="authenticationRequest"/> is <see langword="null"/>.</para>
        /// </exception>
        public IdentityV2AuthenticationService(IIdentityService identityService, AuthenticationRequest authenticationRequest)
        {
            if (identityService == null)
                throw new ArgumentNullException("identityService");
            if (authenticationRequest == null)
                throw new ArgumentNullException("authenticationRequest");

            _identityService = identityService;
            _authenticationRequest = authenticationRequest;
        }
		public ApplicationStateManager(
			IStateConfig config,
			IApplicationEditor editor,
			IIdentityService identity,
			IStateSettingsRepository settings)
		{
			_config = config;
			_editor = editor;
			_identity = identity;
			_settings = settings;
		}
		public ApplicationsController(
			IForwarderApplication forwarderApplication,
			IApplicationListPresenter presenter,
			IIdentityService identity,
			IForwarderRepository forwarders)
		{
			_forwarderApplication = forwarderApplication;
			_presenter = presenter;
			_identity = identity;
			_forwarders = forwarders;
		}
Exemple #21
0
		public ClientPresenter(
			IClientRepository clients,
			IIdentityService identity,
			IClientBalanceRepository balances,
			IClientPermissions permissions)
		{
			_clients = clients;
			_identity = identity;
			_balances = balances;
			_permissions = permissions;
		}
        public ForwarderUserController(
			ICityRepository cities,
			IUserRepository users,
			IForwarderRepository forwarders,
			IIdentityService identity)
		{
			_cities = cities;
			_users = users;
			_forwarders = forwarders;
			_identity = identity;
		}
 /// <summary>
 /// Initializes a new instance of the <see cref="BlogPostPageViewModelMapper"/> class.
 /// </summary>
 /// <param name="blogPostFormViewModelMapper">
 /// The blog post form view model mapper.
 /// </param>
 /// <param name="blogPostCommentPageViewModelMapper">
 /// The blog Post Comment Page View Model Mapper.
 /// </param>
 /// <param name="identityService">
 /// The identity Service.
 /// </param>
 /// <param name="archiveSectionViewModelMapper">
 /// The archive Section View Model Mapper.
 /// </param>
 public BlogPostPageViewModelMapper(
     IBlogPostFormViewModelMapper blogPostFormViewModelMapper,
     IBlogPostCommentPageViewModelMapper blogPostCommentPageViewModelMapper,
     IIdentityService identityService,
     IArchiveSectionViewModelMapper archiveSectionViewModelMapper)
 {
     this.blogPostFormViewModelMapper = blogPostFormViewModelMapper;
     this.archiveSectionViewModelMapper = archiveSectionViewModelMapper;
     this.blogPostCommentPageViewModelMapper = blogPostCommentPageViewModelMapper;
     this.identityService = identityService;
 }
Exemple #24
0
		public StateFilter(
			IStateSettingsRepository settings,
			IIdentityService identity,
			IStateConfig config,
			IAwbRepository awbs)
		{
			_settings = settings;
			_identity = identity;
			_config = config;
			_awbs = awbs;
		}
Exemple #25
0
		public SenderAwbController(
			IIdentityService identity,
			IAwbUpdateManager awbUpdateManager,
			IAwbManager awbManager,
			IAwbPresenter awbPresenter)
		{
			_identity = identity;
			_awbUpdateManager = awbUpdateManager;
			_awbManager = awbManager;
			_awbPresenter = awbPresenter;
		}
		public ClientCalculationController(
			IClientCalculationPresenter presenter,
			IClientBalanceRepository balance,
			IExcelClientCalculation excel,
			IClientRepository clients,
			IIdentityService identity)
		{
			_presenter = presenter;
			_balance = balance;
			_excel = excel;
			_clients = clients;
			_identity = identity;
		}
Exemple #27
0
		public ClientController(
			IIdentityService identity,
			IClientManager manager,
			IClientFileRepository files,
			IClientPresenter clients,
			ISenderRepository senders)
		{
			_identity = identity;
			_manager = manager;
			_files = files;
			_clients = clients;
			_senders = senders;
		}
		public ClientApplicationController(
			IClientApplicationManager manager,
			ICountryRepository countries,
			IIdentityService identity,
			IClientRepository clients,
			IApplicationRepository applications)
		{
			_manager = manager;
			_countries = countries;
			_identity = identity;
			_clients = clients;
			_applications = applications;
		}
Exemple #29
0
		public ApplicationPresenter(
			IApplicationRepository applications,
			IIdentityService identity,
			IStateFilter stateFilter,
			ITransitRepository transits,
			IStateRepository states)
		{
			_applications = applications;
			_identity = identity;
			_stateFilter = stateFilter;
			_transits = transits;
			_states = states;
		}
Exemple #30
0
		public AdminAwbController(
			IIdentityService identity,
			IAwbManager awbManager,
			IAwbPresenter awbPresenter,
			IAwbUpdateManager awbUpdateManager,
			IBrokerRepository brokers,
			ISenderRepository senders)
		{
			_identity = identity;
			_awbManager = awbManager;
			_awbPresenter = awbPresenter;
			_awbUpdateManager = awbUpdateManager;
			_brokers = brokers;
			_senders = senders;
		}
Exemple #31
0
 public EventOrganizerController(IIdentityService identityService, IValidateService validateService, IEventOrganizerFacade facade, IMapper mapper) : base(identityService, validateService, facade, mapper, "1.0.0")
 {
 }
Exemple #32
0
 public BudgetExportGarmentReportLogic(IIdentityService identityService, SalesDbContext dbContext)
 {
     this.identityService = identityService;
     this.dbContext       = dbContext;
     dbSet = dbContext.Set <CostCalculationGarment>();
 }
Exemple #33
0
 public MachineLogic(MachineEventLogic machineEventLogic, StepLogic stepLogic, IIdentityService identityService, ProductionDbContext dbContext) : base(identityService, dbContext)
 {
     this.MachineEventLogic = machineEventLogic;
     this.StepLogic         = stepLogic;
 }
Exemple #34
0
 public IdentityController(IIdentityService identityService)
 {
     _identityService = identityService;
 }
 public CreateTacheCommandHandler(IApplicationDbContext context, ICurrentUserService currentUser, IIdentityService identityService)
 {
     _context         = context;
     _currentUser     = currentUser;
     _identityService = identityService;
 }
 public LossEventLogic(IIdentityService identityService, ProductionDbContext dbContext) : base(identityService, dbContext)
 {
 }
        public ScholarshipController(ScholarshipContext context, IOptionsSnapshot<ScholarshipSettings> settings, IIdentityService identityService, IScholarshipIntegrationEventService scholarshipIntegrationEventService)
        {
            _scholarshipContext = context ?? throw new ArgumentNullException(nameof(context));
            _scholarshipIntegrationEventService = scholarshipIntegrationEventService ?? throw new ArgumentNullException(nameof(scholarshipIntegrationEventService));
            _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
            _settings = settings.Value;

            context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
        }
Exemple #38
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IdentityController"/> class.
 /// </summary>
 /// <param name="identity">The identity service.</param>
 public IdentityController(IIdentityService identity)
 {
     this.identity = identity;
 }
Exemple #39
0
 public UserRepository(ApplicationDbContext context, IIdentityService identityService)
 {
     _context         = context;
     _identityService = identityService;
 }
 public ProfitGarmentByComodityReportController(IIdentityService identityService, IProfitGarmentByComodityReport facade) : base(identityService, facade, apiVersion)
 {
 }
Exemple #41
0
 // Using DI to inject infrastructure persistence Repositories
 public ContactCommandHandler(IMediator mediator, IRepository <Contact> contactRepository, IIdentityService identityService)
 {
     _contactRepository = contactRepository ?? throw new ArgumentNullException(nameof(contactRepository));
     _identityService   = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _mediator          = mediator ?? throw new ArgumentNullException(nameof(mediator));
 }
 public StorageOfProductController(IStorageOfProductDomain storageOfProductDomain, IIdentityService identityService, ICommonDomain commonDomain, IConfigurationService configurationService)
 {
     _storageOfProductDomain = storageOfProductDomain;
     _identityService        = identityService;
     _commonDomain           = commonDomain;
     _configurationService   = configurationService;
 }
 public SectionController(IIdentityService identityService, IValidateService validateService, ISectionFacade sectionFacade, IMapper mapper) : base(identityService, validateService, sectionFacade, mapper, apiVersion)
 {
 }
Exemple #44
0
 public DOSalesLogic(IServiceProvider serviceProvider, IIdentityService identityService, SalesDbContext dbContext) : base(identityService, serviceProvider, dbContext)
 {
     this.doSalesLocalLogic = serviceProvider.GetService <DOSalesDetailLogic>();
     _dbContext             = dbContext;
 }
 public PurchasingMemoDetailTextileController(IServiceProvider serviceProvider)
 {
     _identityService = serviceProvider.GetService <IIdentityService>();
     _service         = serviceProvider.GetService <IPurchasingMemoDetailTextileService>();
     _validateService = serviceProvider.GetService <IValidateService>();
 }
 public GarmentEMKLService(IServiceProvider serviceProvider, CoreDbContext dbContext)
 {
     _DbContext       = dbContext;
     _DbSet           = dbContext.Set <GarmentEMKLModel>();
     _IdentityService = serviceProvider.GetService <IIdentityService>();
 }
Exemple #47
0
 protected BaseUserRequestHandler(IAsyncUserService userService,
                                  IIdentityService identityService)
 {
     _userService     = userService;
     _identityService = identityService;
 }
Exemple #48
0
 public IdentityController(IIdentityService identityService, IJwtTokenService jwtTokenService)
 {
     _identityService = identityService;
     _jwtTokenService = jwtTokenService;
 }
 public SignupController(IIdentityService iidentityService)
 {
     _iidentityService = iidentityService;
 }
Exemple #50
0
 public HomeController(IIdentityService identity, IMarketService market)
 {
     IdentityService = identity;
     MarketService   = market;
 }
 public RemoveProjectParticipantCommandHandler(IApplicationDbContext context, ICurrentUserService currentUserService, IIdentityService identityService)
 {
     _context            = context;
     _currentUserService = currentUserService;
     _identityService    = identityService;
 }
 public DailyOperationController(IIdentityService identityService, IValidateService validateService, IDailyOperationFacade facade, IMapper mapper) : base(identityService, validateService, facade, mapper, "1.0.0")
 {
     _StartDate = DateTime.Now;
     _EndDate   = DateTime.Now.AddDays(-1);
 }
Exemple #53
0
 public UsersFacade(IMapper mapper, IIdentityService identityService)
 {
     _mapper          = mapper;
     _identityService = identityService;
 }
Exemple #54
0
 public LoggingBehaviour(ILogger <TRequest> logger, ICurrentUserService currentUserService, IIdentityService identityService)
 {
     _logger             = logger;
     _currentUserService = currentUserService;
     _identityService    = identityService;
 }
Exemple #55
0
 public AuthenticationController(IIdentityService identityService, UserManager <IdentityUser> userManager)
 {
     _identityService = identityService;
     _userManager     = userManager;
 }
 public EfficiencyLogic(IServiceProvider serviceProvider, IIdentityService identityService, SalesDbContext dbContext) : base(identityService, serviceProvider, dbContext)
 {
     this.DbContext = dbContext;
 }
Exemple #57
0
 public Handler(IIdentityService identityService, IMapper mapper)
 {
     _identityService = identityService;
     _mapper          = mapper;
 }
 public RO_GarmentsControllerprivate(IIdentityService identityService, IValidateService validateService, IROGarment facade, IMapper mapper, IServiceProvider serviceProvider) : base(identityService, validateService, facade, mapper, apiVersion)
 {
     Service = identityService;
 }
Exemple #59
0
 public GetUserStatsQueryHandler(IApplicationDbContext dbContext, IIdentityService identityService)
 {
     _dbContext       = dbContext;
     _identityService = identityService;
 }
 public GarmentOmzetTargetController(IIdentityService identityService, IValidateService validateService, IGarmentOmzetTarget facade, IMapper mapper, IServiceProvider serviceProvider) : base(identityService, validateService, facade, mapper, apiVersion)
 {
     HttpClientService = serviceProvider.GetService <IHttpClientService>();
 }