Esempio n. 1
0
        /// <summary>
        /// Send message to the queue
        /// </summary>
        /// <typeparam name="TMessage">Type of the object to send as a message.</typeparam>
        /// <param name="queueClient">type to extend</param>
        /// <param name="message"></param>
        /// <param name="serializer">Object used to serialize message</param>
        /// <returns></returns>
#if NETCOREAPP3_1 || NET5_0
        public static async Task SendCompressorAsync <TMessage>(this IQueueClient queueClient, TMessage message, IMessageSerializer serializer)
            where TMessage : class, new()
        {
            SenderExtender <IQueueClient> queueConnector = new SenderExtender <IQueueClient>(queueClient, serializer);
            await queueConnector.SendAsync(message);
        }
Esempio n. 2
0
 public static async Task SendCompressorAsync(this ServiceBusSender queueClient, string message, StorageSettingData settingData)
 {
     SenderExtender <ServiceBusSender> queueConnector = new SenderExtender <ServiceBusSender>(queueClient, settingData);
     await queueConnector.SendAsync(message);
 }
Esempio n. 3
0
 public static async Task SendCompressorAsync <TMessage>(this ServiceBusSender queueClient, TMessage message)
     where TMessage : class, new()
 {
     SenderExtender <ServiceBusSender> queueConnector = new SenderExtender <ServiceBusSender>(queueClient);
     await queueConnector.SendAsync(message);
 }
Esempio n. 4
0
        /// <summary>
        /// Send message to the queue
        /// </summary>
        /// <param name="queueClient">type to extend</param>
        /// <param name="message">Message for the queue (can be json)</param>
        /// <returns></returns>
#if NETCOREAPP3_1 || NET5_0
        public static async Task SendCompressorAsync(this IQueueClient queueClient, string message)
        {
            SenderExtender <IQueueClient> queueConnector = new SenderExtender <IQueueClient>(queueClient);
            await queueConnector.SendAsync(message);
        }
Esempio n. 5
0
 public static async Task SendCompressorAsync <TMessage>(this ServiceBusSender queueClient, TMessage message, StorageSettingData settingData, IMessageSerializer serializer)
     where TMessage : class, new()
 {
     SenderExtender <ServiceBusSender> queueConnector = new SenderExtender <ServiceBusSender>(queueClient, settingData, serializer);
     await queueConnector.SendAsync(message);
 }
Esempio n. 6
0
 public static async Task SendCompressorAsync <TMessage>(this IQueueClient queueClient, TMessage message, StorageSettingData settingData)
     where TMessage : class, new()
 {
     SenderExtender <IQueueClient> queueConnector = new SenderExtender <IQueueClient>(queueClient, settingData);
     await queueConnector.SendAsync(message);
 }
Esempio n. 7
0
 public static async Task SendCompressorAsync(this ITopicClient topicClient,
                                              string message, StorageSettingData settingData)
 {
     SenderExtender <ITopicClient> topicConnector = new SenderExtender <ITopicClient>(topicClient, settingData);
     await topicConnector.SendAsync(message);
 }
Esempio n. 8
0
 public static async Task SendCompressorAsync(this ServiceBusSender topicClient,
                                              string message)
 {
     SenderExtender <ServiceBusSender> topicConnector = new SenderExtender <ServiceBusSender>(topicClient);
     await topicConnector.SendAsync(message);
 }