Ejemplo n.º 1
0
        //  IBTTransportConfig
        public void AddReceiveEndpoint(string url, IPropertyBag pConfig, IPropertyBag pBizTalkConfig)
        {
            if (!Initialized)
            {
                throw new NotInitialized();
            }

            if (_endpoints.ContainsKey(url))
            {
                throw new EndpointExists(url);
            }

            ReceiverEndpoint endpoint = (ReceiverEndpoint)Activator.CreateInstance(_endpointType);

            if (null == endpoint)
            {
                throw new CreateEndpointFailed(_endpointType.FullName, url);
            }

            endpoint.Open(url, pConfig, pBizTalkConfig, HandlerPropertyBag, TransportProxy, TransportType, PropertyNamespace, _control);

            _endpoints[url] = endpoint;
        }
Ejemplo n.º 2
0
        //  IBTTransportConfig
        public void AddReceiveEndpoint(string Url, IPropertyBag pConfig, IPropertyBag pBizTalkConfig)
        {
            if (!this.Initialized)
            {
                throw new NotInitialized();
            }

            if (this.endpoints.ContainsKey(Url))
            {
                throw new EndpointExists(Url);
            }

            ReceiverEndpoint endpoint = (ReceiverEndpoint)Activator.CreateInstance(this.endpointType);

            if (null == endpoint)
            {
                throw new CreateEndpointFailed(this.endpointType.FullName, Url);
            }

            endpoint.Open(Url, pConfig, pBizTalkConfig, this.HandlerPropertyBag, this.TransportProxy, this.TransportType, this.PropertyNamespace, this.control);

            this.endpoints[Url] = endpoint;
        }