Exemple #1
0
 public DrapoPlumber(DrapoMiddlewareOptions options, IDrapoRequestReader requestHeaderReader, IHubContext <DrapoPlumberHub> hub, IDrapoConnectionManager connectionManager)
 {
     this._options       = options;
     this._requestReader = requestHeaderReader;
     this._hub           = hub;
     _connectionManager  = connectionManager;
 }
Exemple #2
0
 private void ConfigureDrapo(IHostingEnvironment env, DrapoMiddlewareOptions options)
 {
     if (env.IsDevelopment())
     {
         options.Debug = true;
     }
     options.Config.UsePipes      = false;
     options.Config.StorageErrors = "errors";
     options.Config.OnError       = "";
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 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;
 }
Exemple #5
0
 public DrapoPlumberHub(DrapoMiddlewareOptions options)
 {
     this._options = options;
 }
Exemple #6
0
 public DrapoConnectionManagerRedis(DrapoMiddlewareOptions options)
 {
     _redisManagerPool = new RedisManagerPool(options.BackplaneRedis);
 }
Exemple #7
0
 public DrapoPlumberHub(DrapoMiddlewareOptions options, IDrapoConnectionManager connectionManager)
 {
     this._options           = options;
     this._connectionManager = connectionManager;
 }
Exemple #8
0
 public DrapoPlumber(DrapoMiddlewareOptions options, IDrapoRequestHeaderReader requestHeaderReader, IHubContext <DrapoPlumberHub> hub)
 {
     this._options             = options;
     this._requestHeaderReader = requestHeaderReader;
     this._hub = hub;
 }
Exemple #9
0
 public DrapoUserConfig(DrapoMiddlewareOptions options, IHttpContextAccessor context)
 {
     this._options = options;
     this._context = context;
 }
Exemple #10
0
 public DrapoRequestHeaderReader(DrapoMiddlewareOptions options, IHttpContextAccessor context)
 {
     this._options = options;
     this._context = context;
 }
Exemple #11
0
 public DrapoConnectionManagerRedis(DrapoMiddlewareOptions options)
 {
     _connection = ConnectionMultiplexer.Connect(options.BackplaneRedis);
     Check();
 }