Пример #1
0
        /// <summary>
        /// Initialize the adapter by taken the address of receive location from message context
        /// </summary>
        /// <param name="tp">Transport proxy object reference</param>
        /// <param name="message">BizTalk message object reference</param>
        /// <param name="callBack">Reference to the configuration callback interface</param>
        private void InternalInitialize(IBTTransportProxy tp, IBaseMessage message, IBTTransportConfig callBack)
        {
            IBaseMessageContext ctx;

            ctx = message.Context;
            SystemMessageContext smc = new SystemMessageContext(ctx);
            string url = smc.InboundTransportLocation;

            InternalInitialize(tp, url, callBack);
        }
Пример #2
0
        /// <summary>
        /// Initialize the adapter by specifying the address of the receive location that uses the adapter
        /// </summary>
        /// <param name="tp">Transport proxy object reference</param>
        /// <param name="url">Address of the receive location</param>
        /// <param name="callBack">Reference to the configuration callback interface</param>
        private void InternalInitialize(IBTTransportProxy tp, string url, IBTTransportConfig callBack)
        {
            lock (this)
            {
                while (false == _initialized)
                {
                    IBTTransportConfig cb = null;

                    if (null == url)
                    {
                        throw new ArgumentNullException("Url may not be null");
                    }

                    if (null == callBack)
                    {
                        cb = this;
                    }
                    else
                    {
                        cb = callBack;
                    }

                    if (null == tp && null == _tp)
                    {
                        _tp = new IBTTransportProxy();
                    }
                    else if (null != tp)
                    {
                        _tp = tp;
                    }

                    _tp.RegisterIsolatedReceiver(url, cb);
                    _mf = _tp.GetMessageFactory();

                    _initialized = true;
                }
            }
        }
		/// <summary>
		/// Initialize the adapter by explicitely setting the receive location URI.
		/// </summary>
		/// <param name="tp">Transport proxy object reference</param>
		/// <param name="url">Address of the receive location that used this adapter</param>
		/// <param name="callBack">Reference to the configuration callback interface</param>
		public void Initialize(IBTTransportProxy tp, string url, IBTTransportConfig callBack)
		{
			InternalInitialize( tp, url, callBack );
		}
		/// <summary>
		/// Initialize the adapter by specifying the address of the receive location that uses the adapter
		/// </summary>
		/// <param name="tp">Transport proxy object reference</param>
		/// <param name="url">Address of the receive location</param>
		/// <param name="callBack">Reference to the configuration callback interface</param>
		private void InternalInitialize(IBTTransportProxy tp, string url, IBTTransportConfig callBack)
		{
			lock(this)
			{
				while ( false == _initialized )
				{
					IBTTransportConfig cb = null;

					if ( null == url )
						throw new ArgumentNullException("Url may not be null");

					if ( null == callBack )
					{
						cb = this;
					}
					else
					{
						cb = callBack;
					}
				
					if ( null == tp && null == _tp )
					{
						_tp = new IBTTransportProxy();
					}
					else if ( null != tp )
					{
						_tp = tp;
					}

					_tp.RegisterIsolatedReceiver(url, cb);
					_mf = _tp.GetMessageFactory();

					_initialized = true;
				}
			}
		}
		/// <summary>
		/// Initialize the adapter by taken the address of receive location from message context
		/// </summary>
		/// <param name="tp">Transport proxy object reference</param>
		/// <param name="message">BizTalk message object reference</param>
		/// <param name="callBack">Reference to the configuration callback interface</param>
		private void InternalInitialize(IBTTransportProxy tp, IBaseMessage message, IBTTransportConfig callBack)
		{
			IBaseMessageContext	ctx;
			ctx = message.Context;
			SystemMessageContext smc = new SystemMessageContext(ctx);
			string url = smc.InboundTransportLocation;

			InternalInitialize(tp, url, callBack);
		}
Пример #6
0
 /// <summary>
 /// Initialize the adapter by explicitely setting the receive location URI.
 /// </summary>
 /// <param name="tp">Transport proxy object reference</param>
 /// <param name="url">Address of the receive location that used this adapter</param>
 /// <param name="callBack">Reference to the configuration callback interface</param>
 public void Initialize(IBTTransportProxy tp, string url, IBTTransportConfig callBack)
 {
     InternalInitialize(tp, url, callBack);
 }