コード例 #1
0
ファイル: Connection.cs プロジェクト: kxie/m2net
 internal Connection(Server server, m2net.Request mongrel2Request)
 {
     _server = server;
     _mongrel2Request = mongrel2Request;
 }
コード例 #2
0
ファイル: Server.cs プロジェクト: 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;
 }