Ejemplo n.º 1
0
        public void Configure(IApplicationBuilder app, ISitecorePluginManager pluginManager, ISitecoreHostingEnvironment hostingEnvironment)
        {
            var plugin = pluginManager.Resolve(this);

            _logger.LogInformation($"The SettingOne value is: { _configuration.GetSection("Sitecore:Hostbase.Plugin:SettingOne").Value }");
            _logger.LogInformation($"Plugin is running, name is: { plugin.PluginName }");
            _logger.LogInformation($"Application name is: { hostingEnvironment.ApplicationName }");
        }
        public void Configure(IApplicationBuilder app, ISitecorePluginManager pluginManager, ISitecoreHostingEnvironment hostingEnvironment)
        {
            var plugin = pluginManager.Resolve(this);

            app.UseStaticFiles(new StaticFileOptions
            {
                FileProvider = new PhysicalFileProvider(Path.Combine(Path.Combine(Directory.GetCurrentDirectory(), plugin.Path), "Content")),
                RequestPath  = $"/{ plugin.PluginName }"
            });
        }
Ejemplo n.º 3
0
        public void Configure(IApplicationBuilder app, ISitecorePluginManager pluginManager, ISitecoreHostingEnvironment hostingEnvironment)
        {
            var plugin = pluginManager.Resolve(this);

            app.UseStaticFiles(new StaticFileOptions
            {
                FileProvider = new PhysicalFileProvider(Path.Combine(plugin.Path, "Content")),
                RequestPath  = $"/{ plugin.PluginName }"
            });
            app.UseMvc((Action <IRouteBuilder>)(routes => routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}")));
        }
Ejemplo n.º 4
0
 public AlertTagHelper(ISitecorePluginManager pluginManager, IAlertService alertService)
 {
     _pluginManager = pluginManager;
     _alertService  = alertService;
 }
 public ConfigureSitecore(ISitecoreConfiguration scConfig, ISitecorePluginManager pluginManager)
 {
     _publicOrigin = scConfig.GetSection("Sitecore:ProxySupport:PublicOrigin").Value;
 }