Class
AspNetApplication

Represents an ASP.NET Hosted Application

Definition

Namespace:ArtOfTest.WebAii.WebServers.AspNetHost

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public sealed class AspNetApplication : MarshalByRefObject

Inheritance: objectMarshalByRefObjectAspNetApplication

Inherited Members MarshalByRefObject.GetLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

AspNetApplication(string, string)

Create a new Asp.Net application.

Declaration

cs-api-definition
public AspNetApplication(string virtualPath, string physicalPath)

Parameters

virtualPath

string

virtual path.

physicalPath

string

physical path.

Properties

Current

Return current AspNetApplication object.

Declaration

cs-api-definition
public static AspNetApplication Current { get; }

Property Value

AspNetApplication

IsHostRegistered

The host object hosting this application object.

Declaration

cs-api-definition
public bool IsHostRegistered { get; }

Property Value

bool

LastRequest

Last request processed by this application

Declaration

cs-api-definition
public AspNetRequest LastRequest { get; }

Property Value

AspNetRequest

LastResponse

Last response processed by this application.

Declaration

cs-api-definition
public AspNetResponse LastResponse { get; }

Property Value

AspNetResponse

Methods

Create(Settings)

Create a new AspNetApplication

Declaration

cs-api-definition
public static AspNetApplication Create(Settings settings)

Parameters

settings

Settings

Settings to use.

Returns

AspNetApplication

The newly created application

End()

End the AspNet host application.

Declaration

cs-api-definition
public static void End()

InitializeLifetimeService()

Object will live for ever.

Declaration

cs-api-definition
public override object InitializeLifetimeService()

Returns

object

Overrides MarshalByRefObject.InitializeLifetimeService()

ProcessRequest(AspNetRequest)

Process a Request

Declaration

cs-api-definition
public AspNetResponse ProcessRequest(AspNetRequest request)

Parameters

request

AspNetRequest

The request object.

Returns

AspNetResponse

The response object.

ProcessRequest(string)

Process a request.

Declaration

cs-api-definition
public AspNetResponse ProcessRequest(string requestPath)

Parameters

requestPath

string

The request path.

Returns

AspNetResponse

The response object.