public override void Open(string uri, Microsoft.BizTalk.Component.Interop.IPropertyBag config, IPropertyBag bizTalkConfig, Microsoft.BizTalk.Component.Interop.IPropertyBag handlerPropertyBag, IBTTransportProxy transportProxy, string transportType, string propertyNamespace, ControlledTermination control) { try { this.properties = new SBQueueReceiveProperties(uri); XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config); this.properties.LocationConfiguration(locationConfigDom, false); // this is our handle back to the EPM this.transportProxy = transportProxy; // used to control whether the EPM can unload us this.control = control; this.uri = uri; this.transportType = transportType; this.propertyNamespace = propertyNamespace; this.messageFactory = this.transportProxy.GetMessageFactory(); Start(); } catch (Exception) { throw; } finally { } }
// update and delete public override void Update(IPropertyBag config, IPropertyBag bizTalkConfig, IPropertyBag handlerPropertyBag) { try { Stop(); this.properties = new SBQueueReceiveProperties(this.properties.Uri); XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config); this.properties.LocationConfiguration(locationConfigDom, true); Start(); } finally { } }