Ejemplo n.º 1
0
 internal Connection(Server server, m2net.Request mongrel2Request)
 {
     _server = server;
     _mongrel2Request = mongrel2Request;
 }
Ejemplo n.º 2
0
Archivo: Server.cs Proyecto: kxie/m2net
 /// <summary>
 /// This takes ownership of the mongrel2Connection.  It will be disposed when the server is stopped
 /// and the connection should probably not be reused anyways due to the threading issue with
 /// ZMQ.
 /// </summary>
 /// <param name="mongrel2Connection"></param>
 /// <param name="virtualPath"></param>
 /// <param name="physicalPath"></param>
 public Server(m2net.Connection mongrel2Connection, string virtualPath, string physicalPath)
 {
     _mongrel2Connection = mongrel2Connection;
     _virtualPath = virtualPath;
     _physicalPath = physicalPath[physicalPath.Length - 1] == Path.DirectorySeparatorChar ? physicalPath : physicalPath + Path.DirectorySeparatorChar;
 }