/// <summary> /// Creates the GenkanMiddleware to use with owin. /// </summary> /// <param name="next">The next middleware to call after Genkan.</param> /// <param name="tobira">The <see cref="ITobira"/> to forward the call to.</param> /// <param name="requestResponseFactory">The <see cref="IRequestResponseFactory"/> to create the request and response.</param> public GenkanMiddleware(OwinMiddleware next, ITobira tobira, IRequestResponseFactory requestResponseFactory) : base(next) { if (tobira == null) throw new ArgumentNullException(nameof(tobira)); if (requestResponseFactory == null) throw new ArgumentNullException(nameof(requestResponseFactory)); _requestResponseFactory = requestResponseFactory; _tobira = tobira; }
public UserApiController(IUserRegisterService userRegisterService, IUserRoleService userRoleService, IUserService userService, IRequestResponseFactory requestResponseFactory, ICustomAuthorizeService customAuthorizeService, ICompanyRegisterService companyRegisterService, IRegisterService registerService) { this.requestResponseFactory = requestResponseFactory; this.userRegisterService = userRegisterService; this.userRoleService = userRoleService; this.customAuthorizeService = customAuthorizeService; this.userService = userService; this.companyRegisterService = companyRegisterService; this.registerService = registerService; }
public CompanyRegisterService(UserManager <UserRegister> userManager, SignInManager <UserRegister> signInUser, IPasswordGeneratorFactory passwordGeneratorFactory, IHttpContextAccessor httpcontextaccessor, IRequestResponseFactory requestResponseFactory, IMessageSenderFactory messageSenderFactory, IRegisterService registerService, IMapper mapper) { this.messageSenderFactory = messageSenderFactory; this.userManager = userManager; this.signInUser = signInUser; this.passwordGeneratorFactory = passwordGeneratorFactory; this.httpcontextaccessor = httpcontextaccessor; this.requestResponseFactory = requestResponseFactory; this.registerService = registerService; this.mapper = mapper; }
public SessionService(IRequestResponseFactory factory = null) { _factory = factory ?? new RequestResponseFactory(); }
public SpeakerService(IRequestResponseFactory factory = null) { _factory = factory ?? new RequestResponseFactory(); }