コード例 #1
0
 public EmailAuditsController(
     IUserService userService,
     IEMailService emailService
     ) : base(userService)
 {
     _emailService = emailService;
 }
コード例 #2
0
 public HomeController(
     IUserService userService,
     IEMailService emailService
     ) : base(userService)
 {
     _emailService = emailService;
 }
コード例 #3
0
        public NewsService()
        {
            _emailService = new EMailService();
            var context = new TemplateEntities();

            _userRepo = new GenericRepository <User>(context);
            _newsRepo = new GenericRepository <News>(context);
        }
コード例 #4
0
 public InternalBodyArchitectService(ISession session, SecurityManager security, IEMailService eMailServicea, IPushNotificationService pushService, ServiceConfiguration configuration)
 {
     Session                 = session;
     securityManager         = security;
     EMailService            = eMailServicea;
     PushNotificationService = pushService;
     this.configuration      = configuration;
 }
コード例 #5
0
 public ExperimentController(
     IUserService userService,
     IEMailService emailService,
     IWeatherService weatherService
     ) : base(userService)
 {
     _emailService   = emailService;
     _weatherService = weatherService;
 }
コード例 #6
0
 public AuthenticationController(IAccountRepository accountRepository, IMapper mapper, IEMailService mailService,
                                 ITokenHelper tokenHelper, ICacheRepository cacheRepository)
 {
     _accountRepository = accountRepository;
     _mapper            = mapper;
     _mailService       = mailService;
     _tokenHelper       = tokenHelper;
     _cacheRepository   = cacheRepository;
 }
コード例 #7
0
        public void Init()
        {
            var dataMocks = new DebRegDataMocks();

            unitOfWork = dataMocks.UnitOfWork;
            mailService = new DebRegCommunicationMocks().EMailService;
            userManager = dataMocks.UserManager;
            tournamentRegistrationsManager = new TournamentRegistrationsManager(unitOfWork, mailService, userManager);
        }
コード例 #8
0
 public AccountController(IUserService userService, IServiceCache serviceCache,
                          IAuthorizationService authorizationService, IEMailService eMailService,
                          IGroupService groupService)
 {
     _userService          = userService;
     _serviceCache         = serviceCache;
     _authorizationService = authorizationService;
     _eMailService         = eMailService;
     _groupService         = groupService;
 }
コード例 #9
0
 public ClientService(UserManager <CustomIdentityUser> usermanager, IEMailService mailService, ICartRepo CartService,
                      IConfiguration configurations, IHttpContextAccessor httpContextAccessor, IMapper mapper, DbContexts dbContexts)
 {
     _UserManager    = usermanager;
     _CartRepo       = CartService;
     _Configurations = configurations;
     _mailService    = mailService;
     _mapper         = mapper;
     _DbContext      = dbContexts;
 }
コード例 #10
0
 public AuthorizationController(IUnitOfWork <MangoDbContext> unitOfWork
                                , IMemoryCache memoryCache
                                , ITencentCaptcha tencentCaptcha
                                , IEMailService emailService)
 {
     _unitOfWork     = unitOfWork;
     _memoryCache    = memoryCache;
     _tencentCaptcha = tencentCaptcha;
     _emailService   = emailService;
 }
コード例 #11
0
 public NewsService(IEMailService emailService, ICategoryService categoryService,
                    IGenericRepository <DataEntities.Model.News> newsRepo,
                    IGenericRepository <DataEntities.Model.User> userRepo,
                    IScheduledTaskService scheduledTaskService)
 {
     _emailService         = emailService;
     _categoryService      = categoryService;
     _newsRepo             = newsRepo;
     _scheduledTaskService = scheduledTaskService;
     _userRepo             = userRepo;
 }
コード例 #12
0
 public OrderCreatedIntegrationEventHandler(
     IOptions <MailKitOptions> mailSettings,
     IOptions <MailSendOptions> mailOptions,
     IEMailService emailService,
     ILogger <OrderCreatedIntegrationEventHandler> logger)
 {
     _mailSettings = mailSettings.Value;
     _mailOptions  = mailOptions.Value;
     _emailService = emailService;
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
 }
コード例 #13
0
 public SheduleService(IMapper mapper,
                       IDbContextFactory contextFactory,
                       IEMailService eMailService,
                       IConverterService converterService, IUserService userService)
 {
     _eJContext        = contextFactory.CreateReadonlyDbContext <EJContext>();
     _eMailService     = eMailService;
     _converterService = converterService;
     _userService      = userService;
     Mapper            = mapper;
 }
コード例 #14
0
 public ProfileController(
     IUserService userService,
     IEMailService emailService,
     IUserFollowService userFollowService,
     ApplicationUserManager userManager
     ) : base(userService)
 {
     _emailService      = emailService;
     _userFollowService = userFollowService;
     _userManager       = userManager;
 }
コード例 #15
0
 public UserService(
     IServiceCache cache,
     IEMailService eMailService,
     IDbContextFactory contextFactory,
     IMapper mapper, IHttpContextAccessor httpContext,
     IAuthorizationService authorizationService, IConfiguration configuration)
     : base(cache, contextFactory, mapper, httpContext)
 {
     EMailService         = eMailService;
     AuthorizationService = authorizationService;
     SaltConfiguration    = configuration.GetSection("Salt").Get <SaltConfiguration>();
     _eJContext           = contextFactory.CreateReadonlyDbContext <EJContext>();
 }
コード例 #16
0
 public AuthManager(IUserService userService,
                    ITokenHelper tokenHelper,
                    ICustomerService customerService,
                    IOperationClaimService operationClaimService,
                    IUserOperationClaimService userOperationClaimService,
                    IEMailService emailService)
 {
     _userService               = userService;
     _tokenHelper               = tokenHelper;
     _customerService           = customerService;
     _operationClaimService     = operationClaimService;
     _userOperationClaimService = userOperationClaimService;
     _emailService              = emailService;
 }
コード例 #17
0
        public RegisterMemberHandler(IEMailService emailService)
        {
            Guard.AgainstNull(emailService, "emailService");

            _emailService = emailService;
        }
コード例 #18
0
        public BaseUnitTest()
        {
            Configuration = GetTestConfiguration();

            var mockHttpContextAccessor = new Mock <IHttpContextAccessor>();
            var context = new Mock <HttpContext>();

            _mockClaimsPrincipal = new Mock <ClaimsPrincipal>();
            const string fakeTenantId = "abcd";

            context.Setup(x => x.Connection.RemoteIpAddress).Returns(IPAddress.None);
            context.Setup(x => x.User).Returns(_mockClaimsPrincipal.Object);
            context.Setup(x => x.Request.Headers["Tenant-ID"]).Returns(fakeTenantId);
            mockHttpContextAccessor.Setup(_ => _.HttpContext).Returns(context.Object);

            services = new ServiceCollection();
            services.AddSingleton(Configuration);
            services.AddHttpContextAccessor();
            services.AddSingleton <IHttpContextAccessor, HttpContextAccessor>();
            services.AddScoped <IConfiguration>(c => Configuration);
            services.AddSingleton <IActionContextAccessor, ActionContextAccessor>();

            services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies().Where(assembly =>
                                                                                 !assembly.FullName.StartsWith("Microsoft.VisualStudio.TraceDataCollector")));
            services.AddScoped(typeof(IRepository <>), typeof(EfRepository <>));
            services.AddSingleton <IServiceCache, ServiceCache>();
            services.AddScoped <ISessionCache, SessionCache>();
            services.AddScoped <IBaseUserService, BaseUserService>();
            services.AddScoped <IUserService, UserService>();
            services.AddScoped <IAuthorizationService, AuthorizationService>();
            services.AddScoped <IEMailService, EMailService>();
            services.AddScoped <IUserTwoFactorTokenProvider <User>, UserTwoFactorTokenProvider>();
            services.AddScoped <ICourseService, CourseService>();
            services.AddScoped <IGroupService, GroupService>();

            services.AddScoped <IConverterService, ConverterService>();
            services.AddScoped <ISheduleService, SheduleService>();
            ServiceLifetime dbContextLifeTime = DbContextServiceLifetime;

            services.AddDbContext <DbContext, EJContext>(options =>
                                                         options
                                                         .UseLazyLoadingProxies()
                                                         .UseSqlServer(Configuration.GetConnectionString("ElectronicJournalDatabase")),
                                                         ServiceLifetime.Transient);

            UndefinedUserId = Configuration.GetValue <int>("UndefinedUserId");

            var serviceProvider = ServiceProvider = services.BuildServiceProvider();

            serviceProvider.GetRequiredService <DbContext>().ChangeTracker
            .QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
            EMailService           = serviceProvider.GetService <IEMailService>();
            //UserRepository = serviceProvider.get<IRepository<User>>();
            BaseUserService = serviceProvider.GetService <IBaseUserService>();
            UserService     = serviceProvider.GetService <IUserService>();
            GroupService    = serviceProvider.GetService <IGroupService>();
            CourseService   = serviceProvider.GetService <ICourseService>();
            GroupService1   = serviceProvider.GetService <IGroupService>();
            CourseService1  = serviceProvider.GetService <ICourseService>();

            GroupService2  = serviceProvider.GetService <IGroupService>();
            CourseService2 = serviceProvider.GetService <ICourseService>();

            ConverterService                      = serviceProvider.GetService <IConverterService>();
            Mapper                                = serviceProvider.GetService <IMapper>();
            AbsenceRepository                     = serviceProvider.GetService <IRepository <Absence> >();
            AbsenceNotificationRepository         = serviceProvider.GetService <IRepository <AbsenceNotification> >();
            AuditoriumRepository                  = serviceProvider.GetService <IRepository <Auditorium> >();
            CalendarRepository                    = serviceProvider.GetService <IRepository <Calendar> >();
            CalendarSheduleTimeSpendingRepository = serviceProvider.GetService <IRepository <CalendarSheduleTimeSpending> >();
            TimeSpendingRepository                = serviceProvider.GetService <IRepository <TimeSpending> >();
            GroupRepository                       = serviceProvider.GetService <IRepository <Group> >();
            GroupSheduleRepository                = serviceProvider.GetService <IRepository <GroupShedule> >();
            SemesterRepository                    = serviceProvider.GetService <IRepository <Semester> >();
            SheduleSubjectRepository              = serviceProvider.GetService <IRepository <SheduleSubject> >();
            SheduleTimeSpendingRepository         = serviceProvider.GetService <IRepository <SheduleTimeSpending> >();
            SubjectRepository                     = serviceProvider.GetService <IRepository <Subject> >();
            WeekDayRepository                     = serviceProvider.GetService <IRepository <WeekDay> >();
        }
コード例 #19
0
ファイル: SlotManager.cs プロジェクト: Rokory/DebReg
 public SlotManager(ISlotAssignmentManager slotAssignmentManager, ITournamentRegistrationsManager tournamentRegistrationsManager, ITournamentManager tournamentManager, IBookingManager bookingManager, IEMailService mailService, DebRegUserManager userManager)
 {
     this.slotAssignmentManager = slotAssignmentManager;
     this.tournamentregistrationsManager = tournamentRegistrationsManager;
     this.tournamentManager = tournamentManager;
     this.bookingManager = bookingManager;
     this.mailService = mailService;
     this.userManager = userManager;
 }
コード例 #20
0
 public PerformanceAspect(int interval)
 {
     _interval    = interval;
     _mailService = ServiceTool.ServiceProvider.GetService <IEMailService>();
     _stopwatch   = ServiceTool.ServiceProvider.GetService <Stopwatch>();
 }
コード例 #21
0
 public TournamentRegistrationsManager(IUnitOfWork unitOfWork, IEMailService mailService, DebRegUserManager userManager)
     : base(unitOfWork)
 {
     this.mailService = mailService;
     this.userManager = userManager;
 }
コード例 #22
0
 public MessageServiceBase(ISession session, SecurityInfo SecurityInfo, ServiceConfiguration configuration, IPushNotificationService pushNotification, IEMailService emailService)
     : base(session, SecurityInfo, configuration)
 {
     this.pushNotification = pushNotification;
     this.emailService     = emailService;
 }
コード例 #23
0
ファイル: SendMail.cs プロジェクト: Rokory/DebReg
 public SendMail(IEMailService mailService)
 {
     this.mailService = mailService;
 }
コード例 #24
0
ファイル: LogAnalyer.cs プロジェクト: aken1215/0518Demo
 internal LogAnalyer(IWebService webService, IEMailService emailService)
 {
     _webService   = webService;
     _emailService = emailService;
 }
コード例 #25
0
ファイル: PaymentManager.cs プロジェクト: Rokory/DebReg
 public PaymentManager(ITournamentRegistrationsManager registrationsManager, IBookingManager bookingManager, IEMailService mailService) {
     this.registrationsManager = registrationsManager;
     this.bookingManager = bookingManager;
     this.mailService = mailService;
 }
コード例 #26
0
 public NotificationService(IEMailService emailService)
 {
     _emailService = emailService;
 }
コード例 #27
0
 public NotificationService(IEMailService emailService)
 {
     _emailService = emailService;
 }
コード例 #28
0
 public HomeController(IEMailService mailService)
 {
     MailService = mailService;
 }
コード例 #29
0
ファイル: VoteService.cs プロジェクト: robocik/BodyArchitect
 public VoteService(ISession session, SecurityInfo SecurityInfo, ServiceConfiguration configuration, IPushNotificationService pushNotification, IEMailService emailService)
     : base(session, SecurityInfo, configuration, pushNotification, emailService)
 {
 }