public void EnsureInitializeApp() { Console.Error.WriteLine("Ensure Initialize App"); if (requestsGateway == null) { string unixChannelPipePath = Path.GetFullPath(Path.Combine(appFolder, RequestsGateway.ApplicationHostManagerDescriptorFileName)); if (File.Exists(unixChannelPipePath)) { File.Delete(unixChannelPipePath); } UnixChannel devChannel = new UnixChannel(unixChannelPipePath); ChannelServices.RegisterChannel(devChannel, false); requestsGateway = new NginxRequestsGateway(this.appFolder); string objName = RequestsGateway.ApplicationHostManagerDescriptorObjectName; requestsGatewayRef = RemotingServices.Marshal(requestsGateway, objName); Console.Error.WriteLine("Requests Gateway ({0}) Exposed at {1}", objName, unixChannelPipePath); } }
public void EnsureInitializeApp () { Console.Error.WriteLine("Ensure Initialize App"); if(requestsGateway == null) { string unixChannelPipePath = Path.GetFullPath (Path.Combine (appFolder, RequestsGateway.ApplicationHostManagerDescriptorFileName)); if(File.Exists(unixChannelPipePath)) { File.Delete(unixChannelPipePath); } UnixChannel devChannel = new UnixChannel (unixChannelPipePath); ChannelServices.RegisterChannel (devChannel, false); requestsGateway = new NginxRequestsGateway (this.appFolder); string objName = RequestsGateway.ApplicationHostManagerDescriptorObjectName; requestsGatewayRef = RemotingServices.Marshal (requestsGateway, objName); Console.Error.WriteLine ("Requests Gateway ({0}) Exposed at {1}",objName, unixChannelPipePath); } }