/// <summary> /// Initializes NGRIDServiceProxyBase. /// </summary> /// <param name="serviceConsumer">Reference to a NGRIDServiceConsumer object to send/receive NGRID messages</param> /// <param name="remoteEndPoint">Address of remote application</param> /// <param name="serviceClassName">Name of the service class</param> protected NGRIDServiceProxyBase(NGRIDServiceConsumer serviceConsumer, NGRIDRemoteAppEndPoint remoteEndPoint, string serviceClassName) { if (string.IsNullOrEmpty(serviceClassName)) { throw new ArgumentNullException("serviceClassName"); } if (remoteEndPoint == null) { remoteEndPoint = new NGRIDRemoteAppEndPoint(); } _serviceConsumer = serviceConsumer; RemoteApplication = remoteEndPoint; _serviceClassName = serviceClassName; TransmitRule = MessageTransmitRules.DirectlySend; Timeout = 300000; }