Inheritance: System.MarshalByRefObject
コード例 #1
0
ファイル: WebAppHost.cs プロジェクト: nats/castle-1.0.3-mono
		public TestResponse Process(TestRequest request, TextWriter writer)
		{
			MonoRailTestWorkerRequest workerRequest = 
				new MonoRailTestWorkerRequest(request, appVirtualPath, appPhysicalPath, writer);

			workerRequest.Prepare();

			HttpRuntime.ProcessRequest(workerRequest);

			return workerRequest.Response;
		}
コード例 #2
0
		public MonoRailTestWorkerRequest(TestRequest requestData,
		                                 String virtualAppPath,
		                                 String physicalAppPath,
		                                 TextWriter output) : base(virtualAppPath, String.Empty, output)
		{
			this.virtualAppPath = virtualAppPath;
			this.requestData = requestData;
			this.appPhysicalPath = physicalAppPath;
			this.output = output;
			this.filePath = requestData.Url;

			if (!appPhysicalPath.EndsWith(Path.DirectorySeparatorChar.ToString()))
			{
				appPhysicalPath = appPhysicalPath + Path.DirectorySeparatorChar;
			}
		}
コード例 #3
0
		public virtual void Initialize()
		{			
			request = new TestRequest();
		}
コード例 #4
0
 public virtual void Initialize()
 {
     request = new TestRequest();
 }