public void RemoveReceiveEndpoint(string url)
        {
            if (!Initialized)
            {
                throw new NotInitialized();
            }

            ReceiverEndpoint endpoint = _endpoints[url];

            if (null == endpoint)
            {
                return;
            }

            _endpoints.Remove(url);
            endpoint.Dispose();
        }
        public void UpdateEndpointConfig(string url, IPropertyBag pConfig, IPropertyBag pBizTalkConfig)
        {
            if (!Initialized)
            {
                throw new NotInitialized();
            }

            ReceiverEndpoint endpoint = _endpoints[url];

            if (null == endpoint)
            {
                throw new EndpointNotExists(url);
            }

            //  delegate the update call to the endpoint instance itself
            endpoint.Update(pConfig, pBizTalkConfig, HandlerPropertyBag);
        }
Esempio n. 3
0
        public void RemoveReceiveEndpoint(string Url)
        {
            if (!this.Initialized)
            {
                throw new NotInitialized();
            }

            ReceiverEndpoint endpoint = (ReceiverEndpoint)this.endpoints[Url];

            if (null == endpoint)
            {
                return;
            }

            this.endpoints.Remove(Url);
            endpoint.Dispose();
        }
        //  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;
        }
Esempio n. 5
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;
        }