public ParameterController(IParameterAppService AppService, ICommonAppService comService, IMemberLevelAppService levelAppService) { _appService = AppService; _comService = comService; _levelAppService = levelAppService; }
public GlobalController(IParameterAppService appService, IMemberLevelAppService levelAppService, IGlobalAppService globalAppService) { _appService = appService; _levelAppService = levelAppService; _globalAppService = globalAppService; }
public GoodsConsumeController(IGoodsCategoryAppService catAppService, IGoodsAppService AppService, ICommonAppService comService, IReceiveStatisticsAppService copAppService, ISpecObjectAppService specAppService, IMemberAppService memAppService, IParameterAppService parService) { _catAppService = catAppService; _AppService = AppService; _comService = comService; _specAppService = specAppService; _copAppService = copAppService; _memAppService = memAppService; _parService = parService; }
public ApplicationUserManager(IUserStore <ApplicationUser, int> store, IProfileAppService profileAppService, IUserAppService userAppService, IAccessAppService accessAppService, IParameterAppService parameterAppService) : base(store) { _profileAppService = profileAppService; _userAppService = userAppService; _accessAppService = accessAppService; _parameterAppService = parameterAppService; //Username validation config UserValidator = new UserValidator <ApplicationUser, int>(this) { AllowOnlyAlphanumericUserNames = false, RequireUniqueEmail = true }; PasswordValidator = new CustomPasswordValidator() { RequiredLength = 6, RequireNonLetterOrDigit = true, RequireDigit = true, RequireLowercase = true, RequireUppercase = true, }; //Lockout Configuaration UserLockoutEnabledByDefault = true; DefaultAccountLockoutTimeSpan = TimeSpan.FromMinutes(5); MaxFailedAccessAttemptsBeforeLockout = 5; // Providers to Two Factor Autentication RegisterTwoFactorProvider("Código via SMS", new PhoneNumberTokenProvider <ApplicationUser, int> { MessageFormat = "Seu código de segurança é: {0}" }); RegisterTwoFactorProvider("Código via E-mail", new EmailTokenProvider <ApplicationUser, int> { Subject = "Código de Segurança", BodyFormat = "Seu código de segurança é: {0}" }); //E-mail service class Config EmailService = new MailService(_parameterAppService); var provider = new DpapiDataProtectionProvider("Earth"); var dataProtector = provider.Create("EmailConfirmation"); UserTokenProvider = new DataProtectorTokenProvider <ApplicationUser, int>(dataProtector); }
public PumpDataClient(IParameterAppService appService) { _appService = appService; var connection = new HubConnectionBuilder() .WithUrl("https://localhost:5001/Chat") .Build(); connection.On <double>("ReceiveTime", async(data) => { //Console.WriteLine(data.Pressure1); var s = await _appService.CreateAsync(new CreateUpdateParameterDto { P_vibration_X = data }); Console.WriteLine("SAS"); }); connection.StartAsync(); }
/// <summary> /// 构造 /// </summary> /// <param name="parameterAppService"></param> /// <param name="mapper"></param> public ParametersController(IParameterAppService parameterAppService , IMapper mapper) { _mapper = mapper; _parameterAppService = parameterAppService; }
public ParameterController(IParameterAppService appService, IConfigurationRoot configuration) { this.appService = appService; this.configuration = configuration; }
public HomeController(IParameterAppService parameterAppService) { _parameterAppService = parameterAppService; }
public PaySetController(IParameterAppService appService) { _appService = appService; }
public MailService(IParameterAppService parameterAppService) { _parameterAppService = parameterAppService; }
public DockingController(IParameterAppService appService) { _appService = appService; }