public WeVsVirusEmailService( IEmailService emailService, EmailTemplateIdsConfiguration emailTemplateIds, FrontendConfiguration frontendConfiguration) { EmailService = emailService; EmailTemplateIds = emailTemplateIds; FrontendConfiguration = frontendConfiguration; }
public AccountEmailService( IEmailService emailService, EmailTemplateIdsConfiguration emailTemplateIds, FrontendConfiguration frontendConfiguration, UserManager <AppUser> userManager) : base(emailService, emailTemplateIds, frontendConfiguration) { UserManager = userManager; }
public AuthenticationController(ILoggerManager logger, IMapper mapper, UserManager <User> userManager, IAuthenticationManager authManager, IEmailSender emailSender, FrontendConfiguration frontendConfiguration) { _logger = logger; _mapper = mapper; _userManager = userManager; _authManager = authManager; _emailSender = emailSender; _frontendConfiguration = frontendConfiguration; }
private void BindConfigurationVariables(IServiceCollection services) { var emailTemplateIds = new EmailTemplateIdsConfiguration(); Configuration.GetSection("EmailTemplateIds").Bind(emailTemplateIds); services.AddSingleton(emailTemplateIds); var frontendConfiguration = new FrontendConfiguration(); Configuration.GetSection("Frontend").Bind(frontendConfiguration); services.AddSingleton(frontendConfiguration); }
public static void ConfigureFrontend(this IServiceCollection services, IConfiguration configuration) { var frontendConfiguration = new FrontendConfiguration() { AuthenticationControllerName = Environment.GetEnvironmentVariable("SN_FRONTENDSETTINGS_AUTHCONTROLLERNAME"), BaseUrl = Environment.GetEnvironmentVariable("SN_FRONTENDSETTINGS_BASEURL"), ForgotPasswordActionName = Environment.GetEnvironmentVariable("SN_FRONTENDSETTINGS_FORGOTPASSWORDACTIONNAME"), RegisterConfirm = Environment.GetEnvironmentVariable("SN_FRONTENDSETTINGS_REGISTRATIONCONFIRM"), }; services.AddSingleton(frontendConfiguration); }
public AccountsController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ITagService tagService, IMailService mailService, ITokenService tokenService, IMapper mapper, IOptions <FrontendConfiguration> frontendConfiguration) : base(userManager) { _userManager = userManager; _signInManager = signInManager; _tagService = tagService; _mailService = mailService; _tokenService = tokenService; _mapper = mapper; _frontendConfiguration = frontendConfiguration.Value; }
//================================// //== Constructor ==// //================================// /// <summary> /// Constructor /// </summary> public MainWindowViewModel() { // Load property values from configuration file. frontendConfiguration = new FrontendConfiguration(); LoadValuesFromConfiguration(); // Initialize with fixed values. permittedPathExpression = @"^[!#\$%&'\(\)\+\-=@\[\]\^_`\{\}~0-9A-Za-z]+$"; minOfRegionLayers = MinimumCountOfRegions; // Initialize properties for indicators. if (null == paddingColors) { UpdateMiddleColors(); } else { if ((countOfRegionLayers - 2) > paddingColors.Count()) { UpdateMiddleColors(); } else { MiddleColors = PaddingColors.Cast <object>(); } } thresholdSampleColor = GetGrayValueColor(thresholdOfLines); // Initialize the application status sourceFilePath = "No file selected"; exportFileName = string.Empty; exportFilePath = string.Empty; canExport = false; isBusy = false; allColorsOfRegions = new List <int>(); }