/// <summary> /// Configures the Nancy environment /// </summary> /// <param name="environment">The <see cref="T:Nancy.Configuration.INancyEnvironment" /> instance to configure</param> public override void Configure(INancyEnvironment environment) { base.Configure(environment); environment.Tracing(true, true); environment.Diagnostics("wb"); }
public override void Configure(INancyEnvironment environment) { environment.Tracing(enabled: true, displayErrorTraces: true); environment.Diagnostics( enabled: true, password: "******"); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics(true, "password"); environment.Tracing(true, true); base.Configure(environment); }
public override void Configure(INancyEnvironment environment) { base.Configure(environment); //TODO: для отладки, потом убрать environment.Diagnostics(true, "Qaz123"); environment.Tracing(enabled: false, displayErrorTraces: true); }
public override void Configure(INancyEnvironment environment) { base.Configure(environment); if (Application.isEditor) { environment.Tracing(enabled: true, displayErrorTraces: true); environment.Diagnostics(password: "******"); } }
// Override with a valid password (albeit a really really bad one!) // to enable the diagnostics dashboard public override void Configure(INancyEnvironment environment) { environment.Diagnostics( password: "******", path: "/_Nancy", cookieName: "__custom_cookie", slidingTimeout: 30, cryptographyConfiguration: CryptographyConfiguration.NoEncryption); environment.MyConfig("Hello World"); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics( enabled: true, password: "******" ); environment.Tracing( enabled: false, displayErrorTraces: true ); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics( enabled: true, password: "******", path: "/_Nancy", cookieName: "__custom_cookie", slidingTimeout: 30, cryptographyConfiguration: CryptographyConfiguration.NoEncryption); environment.Tracing( enabled: true, displayErrorTraces: true); }
public override void Configure(INancyEnvironment environment) { var config = ApplicationContainer.Resolve <IConfig>(); environment.Diagnostics( enabled: config.DiagnosticsEnabled, password: config.DiagnosticsPassword, path: "/_Nancy", cookieName: "jira.api", slidingTimeout: 30); environment.Tracing( enabled: true, displayErrorTraces: true); }
//=============================================================================================/ /// <summary> /// INancyEnvironment の設定 /// </summary> /// <param name="environment"></param> //=============================================================================================/ public override void Configure(INancyEnvironment environment) { environment.Diagnostics( enabled: true, password: "******", path: "/_Nancy", cookieName: "__custom_cookie", slidingTimeout: 30 ); environment.Tracing( enabled: true, displayErrorTraces: true ); }
public override void Configure(INancyEnvironment environment) { var enabled = Globals.Config.Development; var key = Guid.NewGuid().ToString().Replace("-", null); if (enabled) { Console.WriteLine("Development mode is enabled."); Console.WriteLine("Diagnostic interface: http://+/_Nancy"); Console.WriteLine("Password: " + key); } environment.Diagnostics(enabled, key); environment.Tracing(enabled: enabled, displayErrorTraces: enabled); base.Configure(environment); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics( enabled: true, password: "******", path: "/_Nancy", cookieName: "__custom_cookie", slidingTimeout: 30); environment.Tracing( enabled: true, displayErrorTraces: true); //environment.MyConfig("Hello World"); Console.WriteLine("CustomBootstrapper Configure..."); }
public override void Configure(INancyEnvironment environment) { var dashboardPassword = Configuration.GetValue <string>("NancyDashboardPassword"); if (!string.IsNullOrWhiteSpace(dashboardPassword)) { environment.Diagnostics(true, dashboardPassword); } var displayErrorTraces = Configuration.GetValue <bool>("DisplayErrorTraces"); if (displayErrorTraces) { environment.Tracing(enabled: true, displayErrorTraces: true); } base.Configure(environment); }
public override void Configure(INancyEnvironment environment) { var config = JObject.Parse(File.ReadAllText(_configurationFile)); foreach(var element in config) { environment.AddValue<string>(element.Key, element.Value.Value<string>()); } environment.Diagnostics( enabled: true, password: config["GTDPad.DiagnosticsPassword"].Value<string>() ); environment.Tracing( enabled: false, displayErrorTraces: true ); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics("password"); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics( enabled: true, password: "******"); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics(settings.DiagnosticsEnabled, settings.DiagnosticsPassword, settings.DiagnosticsPath); base.Configure(environment); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics(true, "password"); environment.Tracing(enabled: false, displayErrorTraces: true); base.Configure(environment); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics( password: "******"); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics(true, "hydropower", "nancy"); base.Configure(environment); }
public override void Configure(INancyEnvironment environment) { environment.Diagnostics(true, ServiceToken.ToString()); base.Configure(environment); }