コード例 #1
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="emailNotifier">Оповещатель email.</param>
 /// <param name="logger">Для логирования событий.</param>
 /// <param name="emailMessageFactory"><see cref="IEmailMessageFactory"/>.</param>
 public EmailNotificationHandler(
     IEmailNotifier emailNotifier,
     ILogger <EmailNotificationHandler> logger,
     IEmailMessageFactory emailMessageFactory
     )
 {
     this.emailNotifier       = emailNotifier;
     this.logger              = logger;
     this.emailMessageFactory = emailMessageFactory;
 }
コード例 #2
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public AuthController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IUserLoginService userLoginService, 
			IAuthenticationService authService, IUserResolver userResolver, IOAuthService oAuthService, IUserService userService,
			IFacebookConnectSettings facebookConnectSettings, IEmailSender emailSender,
			IEmailMessageFactory emailMessageFactory)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.UserLoginService = userLoginService;
			this.AuthenticationService = authService;
			this.UserResolver = userResolver;
			this.OAuthService = oAuthService;
			this.UserService = userService;
			this.FacebookConnectSettings = facebookConnectSettings;
			this.EmailSender = emailSender;
			this.EmailMessageFactory = emailMessageFactory;
		}
コード例 #3
0
ファイル: AuthController.cs プロジェクト: ric3ca/brewgr.com
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public AuthController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IUserLoginService userLoginService,
                       IAuthenticationService authService, IUserResolver userResolver, IOAuthService oAuthService, IUserService userService,
                       IFacebookConnectSettings facebookConnectSettings, IEmailSender emailSender,
                       IEmailMessageFactory emailMessageFactory)
 {
     this.UnitOfWorkFactory       = unitOfWorkFactory;
     this.UserLoginService        = userLoginService;
     this.AuthenticationService   = authService;
     this.UserResolver            = userResolver;
     this.OAuthService            = oAuthService;
     this.UserService             = userService;
     this.FacebookConnectSettings = facebookConnectSettings;
     this.EmailSender             = emailSender;
     this.EmailMessageFactory     = emailMessageFactory;
 }
コード例 #4
0
ファイル: RootController.cs プロジェクト: ric3ca/brewgr.com
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public RootController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IUserLoginService userLoginService,
                       IAuthenticationService authService, IUserResolver userResolver, IOAuthService oAuthService, IUserService userService,
                       ISearchService searchService, IFacebookConnectSettings facebookConnectSettings, IMarketingService marketingService,
                       IRecipeService recipeService, IEmailMessageFactory emailMessageFactory, IEmailSender emailSender, ISeoSitemap seoSitemap)
 {
     this.UnitOfWorkFactory       = unitOfWorkFactory;
     this.UserLoginService        = userLoginService;
     this.AuthService             = authService;
     this.UserResolver            = userResolver;
     this.OAuthService            = oAuthService;
     this.UserService             = userService;
     this.SearchService           = searchService;
     this.FacebookConnectSettings = facebookConnectSettings;
     this.MarketingService        = marketingService;
     this.RecipeService           = recipeService;
     this.EmailMessageFactory     = emailMessageFactory;
     this.EmailSender             = emailSender;
     this.SeoSitemap = seoSitemap;
 }
コード例 #5
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public RootController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IUserLoginService userLoginService, 
			IAuthenticationService authService, IUserResolver userResolver, IOAuthService oAuthService, IUserService userService,
			ISearchService searchService, IFacebookConnectSettings facebookConnectSettings, IMarketingService marketingService,
			IRecipeService recipeService, IEmailMessageFactory emailMessageFactory, IEmailSender emailSender, ISeoSitemap seoSitemap)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.UserLoginService = userLoginService;
			this.AuthService = authService;
			this.UserResolver = userResolver;
			this.OAuthService = oAuthService;
			this.UserService = userService;
			this.SearchService = searchService;
			this.FacebookConnectSettings = facebookConnectSettings;
			this.MarketingService = marketingService;
			this.RecipeService = recipeService;
			this.EmailMessageFactory = emailMessageFactory;
			this.EmailSender = emailSender;
			this.SeoSitemap = seoSitemap;
		}
コード例 #6
0
 public NotificationProvider(IEmailService emailService, IEmailMessageFactory factory, IUserRepository userRepository)
 {
     _emailService   = emailService;
     _factory        = factory;
     _userRepository = userRepository;
 }