コード例 #1
0
 public void Apply(SwaggerDocument swaggerDoc, SchemaRegistry schemaRegistry, IApiExplorer apiExplorer)
 {
     swaggerDoc.info.contact = new Contact()
     {
         name = MiniProfiler.RenderIncludes().ToHtmlString()
     };
 }
コード例 #2
0
 /*
  * Before Methods
  */
 private Response AddSiteConfiguration(NancyContext ctx)
 {
     AppModel.Profiler         = MiniProfiler.Current;
     AppModel.ProfilerIncludes = MiniProfiler.RenderIncludes().ToHtmlString();
     AppModel.Linker           = _linker;
     return(null);
 }
コード例 #3
0
 public ActionResult Profiler()
 {
     if (User.IsAdmin)
     {
         return(Content(MiniProfiler.RenderIncludes().ToHtmlString()));
     }
     return(new EmptyResult());
 }
コード例 #4
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            // 显示MiniProfiler
            Response.Write(MiniProfiler.RenderIncludes(RenderPosition.Right));

            Response.Write(Request.QueryString);
        }
コード例 #5
0
        protected void Application_EndRequest()
        {
            // not production code!
            MiniProfiler.Stop();
            var logger   = NLog.LogManager.GetCurrentClassLogger();
            var instance = MiniProfiler.Current;

            logger.Debug(MiniProfiler.RenderIncludes());
        }
コード例 #6
0
        public void Process(StringBuilder output,
                            MerchantTribe.Commerce.MerchantTribeApplication app,
                            dynamic viewBag,
                            ITagProvider tagProvider,
                            ParsedTag tag,
                            string innerContents)
        {
            var rendered = MiniProfiler.RenderIncludes();

            output.Append(rendered.ToHtmlString());
        }
コード例 #7
0
 protected override void OnPreRender(EventArgs e)
 {
     base.OnPreRender(e);
     _ltMiniProfiler.Text = MiniProfiler.RenderIncludes().ToHtmlString();
 }
コード例 #8
0
 /// <summary>
 /// Render the UI to display the profiler
 /// </summary>
 /// <returns></returns>
 /// <remarks>
 /// Generally used for HTML displays
 /// </remarks>
 public string Render()
 {
     return(MiniProfiler.RenderIncludes(RenderPosition.Right).ToString());
 }
コード例 #9
0
ファイル: _Layout.generated.cs プロジェクト: samir631/Mvc5
        public override void Execute()
        {
            WriteLiteral("\r\n<!DOCTYPE html>\r\n<html");

            WriteLiteral(" lang=\"fa\"");

            WriteLiteral(">\r\n<head>\r\n    <meta");

            WriteLiteral(" charset=\"UTF-8\"");

            WriteLiteral(">\r\n    <meta");

            WriteLiteral(" http-equiv=\"content-language\"");

            WriteLiteral(" content=\"fa\"");

            WriteLiteral(" />\r\n\r\n    <title>");


            #line 8 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(ViewBag.Title);


            #line default
            #line hidden
            WriteLiteral(@"</title>

    <!--[if lt IE 9]>
        <script src=""https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js""></script>
        <script src=""https://oss.maxcdn.com/respond/1.4.2/respond.min.js""></script>
    <![endif]-->
    <!--[if lte IE 6]>
        <script src=""/Scripts/libs/warning.js""></script>
        <script>window.onload = function () { e(""js/ie6/"") ;}</script><![endif]-->
    <!--noscript-->
");

            WriteLiteral("    ");


            #line 18 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(Styles.Render("~/Content/adminCss"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 19 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(Scripts.Render("~/bundles/modernizr"));


            #line default
            #line hidden
            WriteLiteral("\r\n    <noscript>\r\n        <meta");

            WriteLiteral(" http-equiv=\"refresh\"");

            WriteLiteral(" content=\"0;url=/NoScript.html\"");

            WriteLiteral(">\r\n    </noscript>\r\n</head>\r\n\r\n<body>\r\n\r\n    <header>\r\n        <div");

            WriteLiteral(" class=\"navbar navbar-default navbar-fixed-top\"");

            WriteLiteral(">\r\n            <div");

            WriteLiteral(" class=\"container\"");

            WriteLiteral(">\r\n                <div");

            WriteLiteral(" class=\"navbar-header\"");

            WriteLiteral(">\r\n                    <button");

            WriteLiteral(" type=\"button\"");

            WriteLiteral(" class=\"navbar-toggle\"");

            WriteLiteral(" data-toggle=\"collapse\"");

            WriteLiteral(" data-target=\".navbar-collapse\"");

            WriteLiteral(">\r\n                        <span");

            WriteLiteral(" class=\"icon-bar\"");

            WriteLiteral("></span>\r\n                        <span");

            WriteLiteral(" class=\"icon-bar\"");

            WriteLiteral("></span>\r\n                        <span");

            WriteLiteral(" class=\"icon-bar\"");

            WriteLiteral("></span>\r\n                    </button>\r\n");

            WriteLiteral("                    ");


            #line 36 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(Html.ActionLink("پنل", MVC.Administrator.Home.ActionNames.Index, MVC.Administrator.Home.Name, new { area = MVC.Administrator.Name }, new { @class = "navbar-brand" }));


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n                </div>\r\n                <div");

            WriteLiteral(" class=\"navbar-collapse collapse\"");

            WriteLiteral(">\r\n                    <ul");

            WriteLiteral(" class=\"nav navbar-nav\"");

            WriteLiteral(">\r\n                        <li>");


            #line 41 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(Html.ActionLink("مدیریت کاربران", MVC.Administrator.User.ActionNames.List, MVC.Administrator.User.Name, new { area = MVC.Administrator.Name }, null));


            #line default
            #line hidden
            WriteLiteral("</li>\r\n                        <li>");


            #line 42 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(Html.ActionLink("مدیریت گروه های کاربری", MVC.Administrator.Role.ActionNames.List, MVC.Administrator.Role.Name, new { area = MVC.Administrator.Name }, null));


            #line default
            #line hidden
            WriteLiteral("</li>\r\n\r\n\r\n                    </ul>\r\n                </div>\r\n            </div>\r" +
                         "\n        </div>\r\n    </header>\r\n\r\n    <div");

            WriteLiteral(" class=\"container margin-top\"");

            WriteLiteral(">\r\n");

            WriteLiteral("        ");


            #line 52 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(RenderBody());


            #line default
            #line hidden
            WriteLiteral("\r\n    </div>\r\n    <footer></footer>\r\n");

            WriteLiteral("    ");


            #line 55 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(Scripts.Render("~/bundles/jquery"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 56 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(Scripts.Render("~/bundles/adminJs"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 57 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(RenderSection("scripts", required: false));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 58 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"


            #line default
            #line hidden

            #line 58 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Html.RenderPartial(MVC.Shared.Views._Noty);

            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 59 "..\..\Areas\Administrator\Views\Shared\_Layout.cshtml"
            Write(MiniProfiler.RenderIncludes());


            #line default
            #line hidden
            WriteLiteral("\r\n</body>\r\n</html>\r\n");
        }
コード例 #10
0
ファイル: IProfiler.cs プロジェクト: cbayles/Siege
 public IHtmlString Render()
 {
     return(MiniProfiler.RenderIncludes());
 }
コード例 #11
0
 /// <summary>
 /// Render the UI to display the profiler
 /// </summary>
 /// <returns></returns>
 /// <remarks>
 /// Generally used for HTML displays
 /// </remarks>
 public string Render()
 {
     return(MiniProfiler.RenderIncludes().ToString());
 }
コード例 #12
0
ファイル: _Layout.generated.cs プロジェクト: samir631/Mvc5
        public override void Execute()
        {
            WriteLiteral("<!DOCTYPE html>\r\n<html");

            WriteLiteral(" lang=\"fa\"");

            WriteLiteral(">\r\n<head>\r\n");

            WriteLiteral("    ");


            #line 5 "..\..\Views\Shared\_Layout.cshtml"
            Write(RenderSection("meta", false));


            #line default
            #line hidden
            WriteLiteral(@"

    <!--[if lt IE 9]>
         <script src=""https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js""></script>
         <script src=""https://oss.maxcdn.com/respond/1.4.2/respond.min.js""></script>
     <![endif]-->
    <!--[if lte IE 6]>
        <script src=""~/Scripts/libs/warning.js""></script>
        <script>window.onload = function () { e(""js/ie6/"") ;}</script><![endif]-->
    <!--noscript-->
");

            WriteLiteral("    ");


            #line 15 "..\..\Views\Shared\_Layout.cshtml"
            Write(Styles.Render("~/Content/css"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 16 "..\..\Views\Shared\_Layout.cshtml"
            Write(Scripts.Render("~/bundles/modernizr"));


            #line default
            #line hidden
            WriteLiteral("\r\n    <noscript>\r\n        <meta");

            WriteLiteral(" http-equiv=\"refresh\"");

            WriteLiteral(" content=\"0;url=/NoScript.html\"");

            WriteLiteral(">\r\n    </noscript>\r\n</head>\r\n<body>\r\n    <header>\r\n        <div");

            WriteLiteral(" class=\"navbar navbar-default navbar-fixed-top\"");

            WriteLiteral(">\r\n            <div");

            WriteLiteral(" class=\"container\"");

            WriteLiteral(">\r\n                <div");

            WriteLiteral(" class=\"navbar-header\"");

            WriteLiteral(">\r\n                    <button");

            WriteLiteral(" type=\"button\"");

            WriteLiteral(" class=\"navbar-toggle\"");

            WriteLiteral(" data-toggle=\"collapse\"");

            WriteLiteral(" data-target=\".navbar-collapse\"");

            WriteLiteral(">\r\n                        <span");

            WriteLiteral(" class=\"icon-bar\"");

            WriteLiteral("></span>\r\n                        <span");

            WriteLiteral(" class=\"icon-bar\"");

            WriteLiteral("></span>\r\n                        <span");

            WriteLiteral(" class=\"icon-bar\"");

            WriteLiteral("></span>\r\n                    </button>\r\n");

            WriteLiteral("                    ");


            #line 31 "..\..\Views\Shared\_Layout.cshtml"
            Write(Html.ActionLink("DotNetCms", MVC.Home.ActionNames.Index, MVC.Home.Name, new { area = "" }, new { @class = "navbar-brand" }));


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n                </div>\r\n                <div");

            WriteLiteral(" class=\"navbar-collapse collapse\"");

            WriteLiteral(">\r\n                    <ul");

            WriteLiteral(" class=\"nav navbar-nav\"");

            WriteLiteral(">\r\n                        <li>");


            #line 36 "..\..\Views\Shared\_Layout.cshtml"
            Write(Html.ActionLink("خانه", MVC.Home.ActionNames.Index, MVC.Home.Name, new { area = "" }, null));


            #line default
            #line hidden
            WriteLiteral("</li>\r\n                        <li>");


            #line 37 "..\..\Views\Shared\_Layout.cshtml"
            Write(Html.ActionLink("درباره ما", MVC.Home.ActionNames.About, MVC.Home.Name, new { area = "" }, null));


            #line default
            #line hidden
            WriteLiteral("</li>\r\n                        <li>");


            #line 38 "..\..\Views\Shared\_Layout.cshtml"
            Write(Html.ActionLink("تماس با ما", MVC.Home.ActionNames.Contact, MVC.Home.Name, new { area = "" }, null));


            #line default
            #line hidden
            WriteLiteral("</li>\r\n");


            #line 39 "..\..\Views\Shared\_Layout.cshtml"


            #line default
            #line hidden

            #line 39 "..\..\Views\Shared\_Layout.cshtml"
            Html.RenderPartial(MVC.Shared.Views.ViewNames._LoginPartial);

            #line default
            #line hidden
            WriteLiteral("\r\n                    </ul>\r\n                </div>\r\n            </div>\r\n        " +
                         "</div>\r\n    </header>\r\n\r\n    <div");

            WriteLiteral(" class=\"container\"");

            WriteLiteral(" style=\"margin-top: 100px;\"");

            WriteLiteral(">\r\n");

            WriteLiteral("        ");


            #line 47 "..\..\Views\Shared\_Layout.cshtml"
            Write(RenderBody());


            #line default
            #line hidden
            WriteLiteral("\r\n    </div>\r\n");

            WriteLiteral("    ");


            #line 49 "..\..\Views\Shared\_Layout.cshtml"
            Write(Scripts.Render("~/bundles/jquery"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 50 "..\..\Views\Shared\_Layout.cshtml"
            Write(Scripts.Render("~/bundles/bootstrap"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 51 "..\..\Views\Shared\_Layout.cshtml"
            Write(RenderSection("scripts", required: false));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 52 "..\..\Views\Shared\_Layout.cshtml"


            #line default
            #line hidden

            #line 52 "..\..\Views\Shared\_Layout.cshtml"
            Html.RenderPartial(MVC.Shared.Views.ViewNames._Noty);

            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 53 "..\..\Views\Shared\_Layout.cshtml"
            Write(MiniProfiler.RenderIncludes());


            #line default
            #line hidden
            WriteLiteral("\r\n</body>\r\n</html>\r\n");
        }