예제 #1
0
        /// <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");
        }
예제 #2
0
 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);
        }
예제 #5
0
 public override void Configure(INancyEnvironment environment)
 {
     base.Configure(environment);
     if (Application.isEditor)
     {
         environment.Tracing(enabled: true, displayErrorTraces: true);
         environment.Diagnostics(password: "******");
     }
 }
예제 #6
0
        // 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");
        }
예제 #7
0
        // 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");
        }
예제 #8
0
        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);
    }
예제 #10
0
        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);
        }
예제 #11
0
        //=============================================================================================/
        /// <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
                );
        }
예제 #12
0
        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);
        }
예제 #13
0
        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);
        }
예제 #15
0
        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
            );
        }
예제 #16
0
 public override void Configure(INancyEnvironment environment)
 {
     environment.Diagnostics("password");
 }
예제 #17
0
 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);
 }
예제 #19
0
 public override void Configure(INancyEnvironment environment)
 {
     environment.Diagnostics(true, "password");
     environment.Tracing(enabled: false, displayErrorTraces: true);
     base.Configure(environment);
 }
예제 #20
0
 public override void Configure(INancyEnvironment environment)
 {
     environment.Diagnostics(
         password: "******");
 }
예제 #21
0
 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);
 }