Ejemplo n.º 1
0
        //  update and delete
        public override void Update(IPropertyBag config, IPropertyBag bizTalkConfig, IPropertyBag handlerPropertyBag)
        {
            try
            {
                Stop();

                this.properties = new TransactionalReceiveProperties(this.properties.Uri);

                //  Handler properties
                XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(handlerPropertyBag);
                if (null != handlerConfigDom)
                {
                    this.properties.HandlerConfiguration(handlerConfigDom);
                }

                //  Location properties - possibly override some Handler properties
                XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config);
                this.properties.LocationConfiguration(locationConfigDom);

                Start();
            }
            finally
            {
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        protected override void HandlerPropertyBagLoaded()
        {
            IPropertyBag config = this.HandlerPropertyBag;

            if (null != config)
            {
                XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(config);
                if (null != handlerConfigDom)
                {
                    SftpTransmitProperties.ReadTransmitHandlerConfiguration(handlerConfigDom);
                }
            }
        }
        /// <summary>
        /// This function is called when BizTalk runtime gives the handler properties to adapter.
        /// </summary>
        protected override void HandlerPropertyBagLoaded()
        {
            IPropertyBag config = this.HandlerPropertyBag;

            if (null != config)
            {
                XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(config);
                if (null != handlerConfigDom)
                {
                    GrabCasterReceiveProperties.ReceiveHandlerConfiguration(handlerConfigDom);
                }
            }
        }
        protected override void HandlerPropertyBagLoaded()
        {
            int          maximumFiles = 0;
            IPropertyBag config       = this.HandlerPropertyBag;

            if (null != config)
            {
                XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(config);
                if (null != handlerConfigDom)
                {
                }
            }
            this.transactionalMaxBatchSize = (maximumFiles > 0 ? maximumFiles : base.MaxBatchSize);
        }
Ejemplo n.º 5
0
        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 TransactionalReceiveProperties(uri);

                //  Handler properties
                XmlDocument handlerConfigDom = ConfigProperties.IfExistsExtractConfigDom(handlerPropertyBag);
                if (null != handlerConfigDom)
                {
                    this.properties.HandlerConfiguration(handlerConfigDom);
                }

                //  Location properties - possibly override some Handler properties
                XmlDocument locationConfigDom = ConfigProperties.ExtractConfigDom(config);
                this.properties.LocationConfiguration(locationConfigDom);

                //  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
            {
            }
        }