コード例 #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
            {
            }
        }
コード例 #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);
                }
            }
        }
コード例 #3
0
        /// <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);
                }
            }
        }
コード例 #4
0
        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);
        }
コード例 #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
            {
            }
        }