public DrapoPlumber(DrapoMiddlewareOptions options, IDrapoRequestReader requestHeaderReader, IHubContext <DrapoPlumberHub> hub, IDrapoConnectionManager connectionManager) { this._options = options; this._requestReader = requestHeaderReader; this._hub = hub; _connectionManager = connectionManager; }
private void ConfigureDrapo(IHostingEnvironment env, DrapoMiddlewareOptions options) { if (env.IsDevelopment()) { options.Debug = true; } options.Config.UsePipes = false; options.Config.StorageErrors = "errors"; options.Config.OnError = ""; }
private void ConfigureDrapo(IWebHostEnvironment env, DrapoMiddlewareOptions options) { if (env.IsDevelopment()) { options.Debug = true; } options.Config.UsePipes = false; options.Config.CreateTheme("", ""); options.Config.CreateTheme("Dark", "dark"); options.Config.StorageErrors = "errors"; options.Config.ValidatorUncheckedClass = "ppValidationUnchecked"; options.Config.ValidatorValidClass = "ppValidatorValid"; options.Config.ValidatorInvalidClass = "ppValidatorInvalid"; options.Config.OnError = "UncheckItemField({{dkLayoutMenuState.menu}});ClearItemField({{taError.Container}});ClearSector(rainbow);ClearSector(footer);UpdateSector(content,/app/error/index.html,Error,true,true,{{tabError.Container}});UncheckDataField(dkTabs,Selected,false);AddDataItem(dkTabs,{{tabError}})"; options.Config.LoadComponents(string.Format("{0}{1}components", env.WebRootPath, Path.AltDirectorySeparatorChar), "~/components"); this._options = options; }
private void ConfigureDrapo(IWebHostEnvironment env, DrapoMiddlewareOptions options) { if (env.IsDevelopment()) { options.Debug = true; } options.Config.UsePipes = true; options.Config.UseRouter = false; options.Config.UseCacheStatic = true; options.Config.UseCacheLocalStorage = true; options.Config.CacheKeysView = "applicationbuild,url,view"; options.Config.CacheKeysComponentView = "applicationbuild,url,view"; options.Config.CacheKeysComponentStyle = "applicationbuild,url,theme"; options.Config.CacheKeysComponentScript = "applicationbuild,url"; options.Config.ApplicationBuild = "1.0"; options.Config.HeaderContainerId = "DrapoContainerId"; options.Config.CreateTheme("Default", ""); options.Config.CreateTheme("Dark", "dark"); options.Config.CreateTheme("Light", "light"); options.Config.CreateView("Mobile", "mobile", "{{__browser.Width}} < 768"); options.Config.CreateView("Web", "default"); options.Config.CreateDynamic("view", "view", "text/html", false, true, HandleView); options.Config.CreateDynamic("redirect", "redirect", "text/html", false, false, HandleRedirect); options.Config.HandlerCustom = HandlerCustom; options.Config.CreateWindow("Confirm", "/DrapoPages/WindowConfirm.html", "Windows", new Dictionary <string, string>() { { "[Message]", "" }, { "[Yes]", "" }, { "[No]", "" } }); options.Config.StorageErrors = "errors"; options.Config.StorageBadRequest = "badrequest"; options.Config.OnAuthorizationRequest = "AddDataItem(list,keyValue)"; options.Config.OnError = ""; options.Config.OnBadRequest = "UpdateDataField(config,message,{{badrequest}})"; options.Config.ValidatorUncheckedClass = "validationUnchecked"; options.Config.ValidatorValidClass = "validatorValid"; options.Config.ValidatorInvalidClass = "validatorInvalid"; options.Config.LoadComponents(string.Format("{0}{1}components", env.WebRootPath, Path.AltDirectorySeparatorChar), "~/components"); this._options = options; }
public DrapoPlumberHub(DrapoMiddlewareOptions options) { this._options = options; }
public DrapoConnectionManagerRedis(DrapoMiddlewareOptions options) { _redisManagerPool = new RedisManagerPool(options.BackplaneRedis); }
public DrapoPlumberHub(DrapoMiddlewareOptions options, IDrapoConnectionManager connectionManager) { this._options = options; this._connectionManager = connectionManager; }
public DrapoPlumber(DrapoMiddlewareOptions options, IDrapoRequestHeaderReader requestHeaderReader, IHubContext <DrapoPlumberHub> hub) { this._options = options; this._requestHeaderReader = requestHeaderReader; this._hub = hub; }
public DrapoUserConfig(DrapoMiddlewareOptions options, IHttpContextAccessor context) { this._options = options; this._context = context; }
public DrapoRequestHeaderReader(DrapoMiddlewareOptions options, IHttpContextAccessor context) { this._options = options; this._context = context; }
public DrapoConnectionManagerRedis(DrapoMiddlewareOptions options) { _connection = ConnectionMultiplexer.Connect(options.BackplaneRedis); Check(); }