コード例 #1
0
 public MenuComponent(IRouteResolverTrie routeResolverTrie, IHttpContextAccessor httpAccessor, IDocumentStore documentStore, IBricsContextAccessor bricsContextAccessor)
 {
     _routeResolverTrie    = routeResolverTrie;
     _httpAccessor         = httpAccessor;
     _documentStore        = documentStore;
     _bricsContextAccessor = bricsContextAccessor;
 }
コード例 #2
0
 public ComponentTagHelper(IHttpContextAccessor contextAccessor, IBricsContextAccessor bricsContext)
 {
     _contextAccessor = contextAccessor;
     _bricsContext = bricsContext;
     _urlHelper = contextAccessor.HttpContext.RequestServices.GetService<IUrlHelper>();
     _htmlHelper = contextAccessor.HttpContext.RequestServices.GetService<IHtmlHelper>();
 }
コード例 #3
0
ファイル: LayoutModel.cs プロジェクト: marcuslindblom/aspnet5
 public LayoutModel(IConfiguration configuration, IDocumentStore documentStore, IHttpContextAccessor httpContextAccessor, IBricsContextAccessor bricsContextAccessor)
 {
     _configuration        = configuration;
     _httpContextAccessor  = httpContextAccessor;
     _bricsContextAccessor = bricsContextAccessor;
     Initialize(documentStore);
 }
コード例 #4
0
ファイル: LayoutModel.cs プロジェクト: marcuslindblom/aspnet5
 public LayoutModel(IDocumentStore documentStore, IHttpContextAccessor httpContextAccessor, IBricsContextAccessor bricsContextAccessor)
 {
     _httpContextAccessor = httpContextAccessor;
     _bricsContextAccessor = bricsContextAccessor;
     Initialize(documentStore);
 }
コード例 #5
0
 public BrickPileEditorTagHelper(IHtmlHelper htmlHelper, IBricsContextAccessor bricsContextAccessor)
 {
     _htmlHelper = htmlHelper;
     _bricsContextAccessor = bricsContextAccessor;
 }