public CornifyMiddleware(AppFunc next, CornifyMiddlewareOptions options) : 
     base(next, new HtmlAppenderMiddlewareOptions {
         Head = String.Format("<script type='text/javascript' src='{0}/cornify.js'></script>", options.AssetsPath),
         Body = "<script>(function() { setInterval(function(){ cornify_add(); }, " + options.AddDelayInMilliseconds + "); })();</script>",
         AppendToBody = options.Autostart
     })
 {
     if (null == options) throw new ArgumentNullException("options");
     _options = options;
 }
 public CornifyMiddleware(AppFunc next, CornifyMiddlewareOptions options) :
     base(next, new HtmlAppenderMiddlewareOptions {
     Head         = String.Format("<script type='text/javascript' src='{0}/cornify.js'></script>", options.AssetsPath),
     Body         = "<script>(function() { setInterval(function(){ cornify_add(); }, " + options.AddDelayInMilliseconds + "); })();</script>",
     AppendToBody = options.Autostart
 })
 {
     if (null == options)
     {
         throw new ArgumentNullException("options");
     }
     _options = options;
 }
        public static void UseCornifyMiddleware(this IAppBuilder app, CornifyMiddlewareOptions options = null)
        {
            if (options == null) options = new CornifyMiddlewareOptions();

            app.Use<CornifyMiddleware>(options);
        }