public WrappingLogger(
     AppFunc next,
     WrappingOptions options,
     string middlewareDescription)
 {
     _next    = next;
     _options = options;
     _middlewareDescription = middlewareDescription;
 }
Example #2
0
 public WrappingLogger(
     AppFunc next, 
     WrappingOptions options, 
     string middlewareDescription)
 {
     _next = next;
     _options = options;
     _middlewareDescription = middlewareDescription;
 }
Example #3
0
        public void Configuration(IAppBuilder app)
        {
            var options = new WrappingOptions()
            {
                BeforeNext = (middleware, environment) =>
                    Debug.WriteLine("Calling into: " + middleware),
                AfterNext = (middleware, environment) =>
                    Debug.WriteLine("Coming back from: " + middleware),
            };

            app = new WrappingAppBuilder<WrappingLogger>(app, options);

            // ...
            InstallWebApi(app);
            InstallDefaultHandler(app);
        }
Example #4
0
        public void Configuration(IAppBuilder app)
        {
            var options = new WrappingOptions()
            {
                BeforeNext = (middleware, environment) =>
                             Debug.WriteLine("Calling into: " + middleware),
                AfterNext = (middleware, environment) =>
                            Debug.WriteLine("Coming back from: " + middleware),
            };

            app = new WrappingAppBuilder <WrappingLogger>(app, options);


            // ...
            InstallWebApi(app);
            InstallDefaultHandler(app);
        }