You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,54 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="PrecompHandler.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// precompile.axd is cut per DevDiv 33186
|
||||
#if PRECOMPILE_AXD_SUPPORT
|
||||
|
||||
/*
|
||||
* PrecompHandler: precompiles the app
|
||||
*
|
||||
* Copyright (c) 1998-1999, Microsoft Corporation
|
||||
*
|
||||
*/
|
||||
namespace System.Web.Handlers {
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.Compilation;
|
||||
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
internal class PrecompHandler : IHttpHandler {
|
||||
|
||||
internal PrecompHandler() {
|
||||
}
|
||||
|
||||
void IHttpHandler.ProcessRequest(HttpContext context) {
|
||||
|
||||
context.Server.ScriptTimeout = 3600;
|
||||
|
||||
// Precompile the app starting at the current request's directory
|
||||
BuildManager.TheBuildManager.PrecompileApp(context.Request.FilePathObject, true);
|
||||
|
||||
context.Response.Write("<html><body><h2>");
|
||||
context.Response.Write(SR.GetString(SR.Success_precompile));
|
||||
context.Response.Write("</h2></body></html>");
|
||||
}
|
||||
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>[To be supplied.]</para>
|
||||
/// </devdoc>
|
||||
public bool IsReusable {
|
||||
get { return true; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
598
mcs/class/referencesource/System.Web/Handlers/TraceHandler.cs
Normal file
598
mcs/class/referencesource/System.Web/Handlers/TraceHandler.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,77 @@
|
||||
namespace System.Web.Handlers {
|
||||
using System.IO;
|
||||
using System.Web.Util;
|
||||
using System.Web;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
|
||||
internal class TraceHandlerErrorFormatter : ErrorFormatter {
|
||||
bool _isRemote;
|
||||
|
||||
internal TraceHandlerErrorFormatter(bool isRemote) {
|
||||
_isRemote = isRemote;
|
||||
}
|
||||
|
||||
protected override string ErrorTitle {
|
||||
get { return SR.GetString(SR.Trace_Error_Title);}
|
||||
}
|
||||
|
||||
protected override string Description {
|
||||
get {
|
||||
if(_isRemote)
|
||||
return SR.GetString(SR.Trace_Error_LocalOnly_Description);
|
||||
else
|
||||
return HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Description));
|
||||
}
|
||||
}
|
||||
|
||||
protected override string MiscSectionTitle {
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
protected override string MiscSectionContent {
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
protected override string ColoredSquareTitle {
|
||||
get {
|
||||
string detailsTitle = SR.GetString(SR.Generic_Err_Details_Title);
|
||||
AdaptiveMiscContent.Add(detailsTitle);
|
||||
return detailsTitle;
|
||||
}
|
||||
}
|
||||
|
||||
protected override string ColoredSquareDescription {
|
||||
get {
|
||||
string description;
|
||||
if(_isRemote)
|
||||
description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Desc));
|
||||
else
|
||||
description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Desc));
|
||||
|
||||
AdaptiveMiscContent.Add(description);
|
||||
return description;
|
||||
}
|
||||
}
|
||||
|
||||
protected override string ColoredSquareContent {
|
||||
get {
|
||||
string content;
|
||||
if(_isRemote)
|
||||
content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Sample));
|
||||
else
|
||||
content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Sample));
|
||||
|
||||
return WrapWithLeftToRightTextFormatIfNeeded(content);
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool ShowSourceFileInfo {
|
||||
get { return false;}
|
||||
}
|
||||
|
||||
internal override bool CanBeShownToAllUsers {
|
||||
get { return true;}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="TransferRequestHandler.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace System.Web.Handlers {
|
||||
using System;
|
||||
using System.Web.Hosting;
|
||||
|
||||
internal class TransferRequestHandler : IHttpHandler {
|
||||
|
||||
public void ProcessRequest(HttpContext context) {
|
||||
IIS7WorkerRequest wr = context.WorkerRequest as IIS7WorkerRequest;
|
||||
if (wr == null) {
|
||||
throw new PlatformNotSupportedException(SR.GetString(SR.Requires_Iis_Integrated_Mode));
|
||||
}
|
||||
// Dev10 848405: use original unencoded URL (i.e., pass null for url so W3_REQUEST::SetUrl is not called)
|
||||
// Dev11 32511: Extensionless URL Handler should not pass parent IHttpUser to child requests
|
||||
wr.ScheduleExecuteUrl(null,
|
||||
null,
|
||||
null,
|
||||
true,
|
||||
context.Request.EntityBody,
|
||||
null,
|
||||
preserveUser: false);
|
||||
|
||||
// force the completion of the current request so that the
|
||||
// child execution can be performed immediately after unwind
|
||||
context.ApplicationInstance.EnsureReleaseState();
|
||||
|
||||
// DevDiv Bugs 162750: IIS7 Integrated Mode: TransferRequest performance issue
|
||||
// Instead of calling Response.End we call HttpApplication.CompleteRequest()
|
||||
context.ApplicationInstance.CompleteRequest();
|
||||
}
|
||||
|
||||
public bool IsReusable {
|
||||
get {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="WebPartExportHandler.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
// The contents of this class moved to Page.ProcessRequestMain (VSWhidbey 426574)
|
||||
// and WebPartManager.GetExportUrl.
|
||||
//-------------------------------------------------------------------------------
|
Reference in New Issue
Block a user