public InstallService(IOptionService optionService, IUserService userService, iBlogsContext blogsContext, ITransactionProvider transactionProvider, IContentsService contentsService, IMetasService metasService) { _optionService = optionService; _userService = userService; _blogsContext = blogsContext; _transactionProvider = transactionProvider; _contentsService = contentsService; _metasService = metasService; }
public async Task Invoke(HttpContext context, iBlogsContext blogsContext) { _blogsContext = blogsContext; if (!Installed()) { context.Request.Path = "/install"; } await _next.Invoke(context); }