Esempio n. 1
0
 public ParameterController(IParameterAppService AppService,
                            ICommonAppService comService, IMemberLevelAppService levelAppService)
 {
     _appService      = AppService;
     _comService      = comService;
     _levelAppService = levelAppService;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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();
        }
Esempio n. 6
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="parameterAppService"></param>
 /// <param name="mapper"></param>
 public ParametersController(IParameterAppService parameterAppService
                             , IMapper mapper)
 {
     _mapper = mapper;
     _parameterAppService = parameterAppService;
 }
Esempio n. 7
0
 public ParameterController(IParameterAppService appService, IConfigurationRoot configuration)
 {
     this.appService    = appService;
     this.configuration = configuration;
 }
Esempio n. 8
0
 public HomeController(IParameterAppService parameterAppService)
 {
     _parameterAppService = parameterAppService;
 }
Esempio n. 9
0
 public PaySetController(IParameterAppService appService)
 {
     _appService = appService;
 }
Esempio n. 10
0
 public MailService(IParameterAppService parameterAppService)
 {
     _parameterAppService = parameterAppService;
 }
Esempio n. 11
0
 public DockingController(IParameterAppService appService)
 {
     _appService = appService;
 }