/// Subscribe action to read queue messages /// </summary> /// <param name="queueClient">type to extend</param> /// <param name="queueName">Queue's name for the message</param> /// <param name="serviceBusConnectionStringName">Queue connection string name (must be present in sbcsettings.json file)</param> /// <param name="onMessageReceived">Action invoked when message arrive</param> /// <param name="messageDeserializer">Object used to deserialize message</param> /// <returns></returns> #if NETCOREAPP3_1 || NET5_0 public static void SubscribeCompressor(this IQueueClient queueClient, Action <MessageReceivedEventArgs> onMessageReceived, IMessageDeserializer messageDeserializer) { ReaderExtender <IQueueClient> reader = new ReaderExtender <IQueueClient>(queueClient, messageDeserializer); reader.Subscribe(onMessageReceived); }
/// <summary> /// Subscribe action to read queue messages /// </summary> /// <param name="queueClient">Type to extend</param> /// <param name="onMessageReceived">Action invoked when message arrive</param> /// <param name="settingData">Setting infomrations</param> /// <param name="typeToDeserialize">Type used to deserialize message</param> #if NETCOREAPP3_1 || NET5_0 public static void SubscribeCompressor(this IQueueClient queueClient, Action <MessageReceivedEventArgs> onMessageReceived, StorageSettingData settingData, Type typeToDeserialize) { ReaderExtender <IQueueClient> reader = new ReaderExtender <IQueueClient>(queueClient, settingData, typeToDeserialize); reader.Subscribe(onMessageReceived); }
/// <summary> /// Subscribe action to read queue messages /// </summary> /// <param name="topicClient">type to extend</param> /// <param name="topicName">Topic's name for the message</param> /// <param name="serviceBusConnectionStringName">Topic connection string name (must be present in sbcsettings.json file)</param> /// <param name="onMessageReceived">Action invoked when message arrive</param> /// <param name="messageDeserializer">Object used to deserialize message</param> /// <returns></returns> #if NETCOREAPP3_1 || NET5_0 public static void SubscribeCompressor(this ISubscriptionClient topicClient, Action <MessageReceivedEventArgs> onMessageReceived, IMessageDeserializer messageDeserializer) { ReaderExtender <ISubscriptionClient> topicMessageReader = new ReaderExtender <ISubscriptionClient>(topicClient, messageDeserializer); topicMessageReader.Subscribe(onMessageReceived); }
/// <summary> /// Subscribe action to read queue messages /// </summary> /// <param name="topicClient">type to extend</param> /// <param name="onMessageReceived">Action invoked when message arrive</param> /// <param name="settingData">Setting infomrations</param> /// <param name="typeToDeserialize">Type used to deserialize message</param> #if NETCOREAPP3_1 || NET5_0 public static void SubscribeCompressor(this ISubscriptionClient topicClient, Action <MessageReceivedEventArgs> onMessageReceived, StorageSettingData settingData, Type typeToDeserialize) { ReaderExtender <ISubscriptionClient> topicMessageReader = new ReaderExtender <ISubscriptionClient>(topicClient, settingData, typeToDeserialize); topicMessageReader.Subscribe(onMessageReceived); }
//public static void SubscribeCompressor(this ServiceBusReceiver queueClient, // Action<MessageReceivedEventArgs> onMessageReceived) public static void SubscribeCompressor(this ServiceBusProcessor queueClient, Action <MessageReceivedEventArgs> onMessageReceived, Type typeToDeserialize) { ReaderExtender <ServiceBusProcessor> reader = new ReaderExtender <ServiceBusProcessor>(queueClient, typeToDeserialize); //ReaderExtender<ServiceBusReceiver> reader = new ReaderExtender<ServiceBusReceiver>(queueClient); reader.Subscribe(onMessageReceived); }
//public static void SubscribeCompressor(this ServiceBusReceiver queueClient, // Action<MessageReceivedEventArgs> onMessageReceived, StorageSettingData settingData) public static void SubscribeCompressor(this ServiceBusProcessor queueClient, Action <MessageReceivedEventArgs> onMessageReceived, StorageSettingData settingData, IMessageDeserializer messageDeserializer) { //ReaderExtender<ServiceBusReceiver> reader = new ReaderExtender<ServiceBusReceiver>(queueClient, settingData); ReaderExtender <ServiceBusProcessor> reader = new ReaderExtender <ServiceBusProcessor>(queueClient, settingData, messageDeserializer); reader.Subscribe(onMessageReceived); }
//public static void SubscribeCompressor(this ServiceBusReceiver topicClient, //public static void SubscribeCompressor(this ServiceBusReceiver topicClient, // Action<MessageReceivedEventArgs> onMessageReceived) public static void SubscribeCompressor(this ServiceBusProcessor topicClient, Action <MessageReceivedEventArgs> onMessageReceived) { ReaderExtender <ServiceBusProcessor> topicMessageReader = new ReaderExtender <ServiceBusProcessor>(topicClient); //ReaderExtender<ServiceBusReceiver> topicMessageReader = new ReaderExtender<ServiceBusReceiver>(topicClient); topicMessageReader.Subscribe(onMessageReceived); }
//public static void SubscribeCompressor(this ServiceBusReceiver topicClient, // Action<MessageReceivedEventArgs> onMessageReceived, StorageSettingData settingData) public static void SubscribeCompressor(this ServiceBusProcessor topicClient, Action <MessageReceivedEventArgs> onMessageReceived, StorageSettingData settingData, Type typeToDeserialize) { ReaderExtender <ServiceBusProcessor> topicMessageReader = new ReaderExtender <ServiceBusProcessor>(topicClient, settingData, typeToDeserialize); //ReaderExtender<ServiceBusReceiver> topicMessageReader = new ReaderExtender<ServiceBusReceiver>(topicClient, settingData); topicMessageReader.Subscribe(onMessageReceived); }