Engine.Run Method (HttpContext)

IT Hit WebDAV for .NET

Processes WebDAV request and generates WebDAV response for IIS/ASP.NET-based server.

[Visual Basic]
Overloads Public Sub Run( _
   ByVal context As HttpContext _
)
[C#]
public void Run(
   HttpContext context
);

Parameters

context
An ASP.NET HttpContext object.

Remarks

You must call Run method in each request to your WebDAV server passing ASP.NET context.

This method instance is optimized for processing requests in IIS/ASP.NEt-based server. If you host your server in HttpListener use this Run overloaded instance instead.

Example

IIS/ASP.NET-based server:

                
public class MyHttpHandler : IHttpHandler
{
    ...
    public void ProcessRequest(HttpContext context)
    {
        context.Response.BufferOutput = false;

        FileLogger.Level = LogLevel.Debug;
        // always create log file outside of the \bin folder if hosted in IIS\ASP.NET
        FileLogger.LogFile = context.Request.PhysicalApplicationPath + "WebDAVlog.txt";

        MyEngine engine = new MyEngine();
        engine.Run(HttpContext.Current);
    }
    ...
}
                
            

See Also

Engine Class | ITHit.WebDAV.Server Namespace | Engine.Run Overload List