Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
        /// <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;
        }