// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, UserManager <User> userManager, RoleManager <ApplicationRole> roleManager, IAddressAppService addressAppService) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } new IdentityInitializer(userManager, roleManager, addressAppService).Initialize(); app.UseCors(config => { config.AllowAnyHeader(); config.AllowAnyMethod(); config.AllowAnyOrigin(); }); app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Marmify_Web_Api V1"); c.RoutePrefix = string.Empty; }); app.UseHttpsRedirection(); app.UseAuthentication(); app.UseMvc(); }
public ContactController(IContactAppService contactApp, IClassificationAppService classificationApp, IAddressAppService addressApp, IPhoneAppService phoneApp) { _contactApp = contactApp; _classificationApp = classificationApp; _addressApp = addressApp; _phoneApp = phoneApp; }
public AddressController(IAddressAppService addressAppService, ICountryAppService countryAppService, IProvinceAppService provinceAppService) { _addressAppService = addressAppService; _countryAppService = countryAppService; _provinceAppService = provinceAppService; }
public IdentityInitializer( UserManager <User> userManager, RoleManager <ApplicationRole> roleManager, IAddressAppService addressAppService) { _userManager = userManager; _roleManager = roleManager; _addressAppService = addressAppService; }
public OrderFactory(IOrderAppService appService, IAddressAppService addressAppService, ICustomerAppService customerAppService, ICompanyAppService companyAppService, IPaymentTypeAppService paymentTypeAppService) { _appService = appService; _addressAppService = addressAppService; _customerAppService = customerAppService; _companyAppService = companyAppService; _paymentTypeAppService = paymentTypeAppService; }
public DoctorController(IDoctorAppService doctorAppService, IPersonAppService personAppService, IAddressAppService addressAppService, IBloodTypeAppService bloodTypeAppService, IApiClientService apiClientService, INotificationHandler <DomainNotification> notifications) : base(notifications) { _doctorAppService = doctorAppService; _personAppService = personAppService; _addressAppService = addressAppService; _bloodTypeAppService = bloodTypeAppService; _apiClientService = apiClientService; }
public OrderAppService( IRepository <Models.Order, Guid> repository, ICustomerAppService customerAppService, ICompanyAppService companyAppService, IPaymentTypeAppService paymentTypeAppService, IAddressAppService addressAppService, ISmtpEmailSenderConfiguration smtpConfig, ISmtpEmailSender smtpEmailSender) { _repository = repository; _customerAppService = customerAppService; _companyAppService = companyAppService; _paymentTypeAppService = paymentTypeAppService; _addressAppService = addressAppService; _smtpConfig = smtpConfig; _smtpEmailSender = smtpEmailSender; }
public AddressAppService_Tests(IAddressAppService addressAppService) { _addressAppService = addressAppService; }
//public HomeController(ITestAppService testAppService, ITestAutofacAppService testAutofacAppService,IPersonAppService personAppService) //{ // _testAppService = testAppService; // _testAutofacAppService = testAutofacAppService; // _personAppService = personAppService; // var ty = typeof(HomeController); // var ty2 = ty.GetTypeInfo().IsAbstract; //} public HomeController(IPersonAppService personAppService, IServiceProvider serviceProvider, IAddressAppService addressAppService) { _personAppService = personAppService; _serviceProvider = serviceProvider; _addressAppService = addressAppService; }
/// <summary> /// 构造函数 /// </summary> /// <param name="appservice"></param> public AddressController(IAddressAppService appservice) { _appservice = appservice; }
public CustomerAppService(IRepository <Models.Customer, Guid> repository, IAddressAppService addressAppService) { _repository = repository; _addressAppService = addressAppService; }
public AddressController(ICustomerAppService iCustomerAppService, IAddressAppService iAddressAppService) { _iCustomerAppService = iCustomerAppService; _iAddressAppService = iAddressAppService; }
public AddressController(IAddressAppService addressAppService, IDomainNotificationHandler <DomainDotification> notifications, IUser user, IStringLocalizer <BaseController> localizer) : base(notifications, user, localizer) { _addressAppService = addressAppService; }
public AddressController(IAddressAppService addressAppService, IMapper mapper, ICepService cepService) { _addressAppService = addressAppService; _mapper = mapper; _cepService = cepService; }
public AddressController(IUnitOfWork <Context> uow, IAddressAppService addressAppService) { _uow = uow; _addressAppService = addressAppService; }