/// <summary>
        /// Gets a sender for the bridge.
        /// </summary>
        /// <param name="properties">The service bus extended properties.</param>
        /// <returns>
        /// Returns the sender agent.
        /// </returns>
        public override ISender GetSender(AzureServiceBusExtendedProperties properties)
        {
            var sender = new AzureServiceBusQueueSender();

            sender.Connection = Connection;
            sender.EntityName = properties.EntityName;
            return(sender);
        }
        /// <summary>
        /// Gets a listener agent for the bridge.
        /// </summary>
        /// <param name="properties">The service bus extended properties.</param>
        /// <returns>
        /// Returns the listener agent.
        /// </returns>
        public override IListener GetListener(AzureServiceBusExtendedProperties properties)
        {
            var listener = new AzureServiceBusQueueListener();

            listener.Connection = Connection;
            listener.EntityName = properties.EntityName;

            return(listener);
        }
示例#3
0
 /// <summary>
 /// Gets a sender for the bridge.
 /// </summary>
 /// <param name="properties">The service bus extended properties.</param>
 /// <returns>Returns the sender agent.</returns>
 public abstract ISender GetSender(AzureServiceBusExtendedProperties properties);
示例#4
0
 /// <summary>
 /// Gets a listener agent for the bridge.
 /// </summary>
 /// <param name="properties">The service bus extended properties.</param>
 /// <returns>Returns the listener agent.</returns>
 public abstract IListener GetListener(AzureServiceBusExtendedProperties properties);