Intergrupo.ServiceBusHelper
1.0.8
See the version list below for details.
dotnet add package Intergrupo.ServiceBusHelper --version 1.0.8
NuGet\Install-Package Intergrupo.ServiceBusHelper -Version 1.0.8
<PackageReference Include="Intergrupo.ServiceBusHelper" Version="1.0.8" />
paket add Intergrupo.ServiceBusHelper --version 1.0.8
#r "nuget: Intergrupo.ServiceBusHelper, 1.0.8"
// Install Intergrupo.ServiceBusHelper as a Cake Addin
#addin nuget:?package=Intergrupo.ServiceBusHelper&version=1.0.8
// Install Intergrupo.ServiceBusHelper as a Cake Tool
#tool nuget:?package=Intergrupo.ServiceBusHelper&version=1.0.8
<center>Service Bus Helper</center>
<p align="center"> <img src="https://ms-vsts.gallerycdn.vsassets.io/extensions/ms-vsts/vss-services-azureservicebus/1.0.1/1479220405236/Microsoft.VisualStudio.Services.Icons.Default" /> </p>
🧩 Permite enviar mensajes a Colas y Topics con diferente sobrecarga de opciones.
Instalación
Fácil instalación por medio de NuGet:
- ServiceBusHelper
PM > Install-Package Intergrupo.ServiceBusHelper -Version 1.0.7
##Implementación
Startup.cs
public void ConfigureServices(IServiceCollection services)
{
//...
//...
//Adición de servicio para con ingreso de cadena de conexión a Azure Service Bus
services.AddScoped<Intergrupo.ServiceBusHelper.IServiceSender>(s
=> new Intergrupo.ServiceBusHelper.ServiceSender(Configuration["ServiceBus:EndPointQueueSend"]));
}
##Uso
CustomClass.cs
using Intergrupo.ServiceBusHelper;
//...
//...
//Objeto para inyectar la dependencia
protected IServiceSender ServiceSender { get; }
//Inyección de dependencia por medio del constructor
public CustomClass(IServiceSender serviceSender)
{
ServiceSender = serviceSender;
}
//Mensaje para notificar detalle de un paso
dynamic contentStateMessage = new System.Dynamic.ExpandoObject();
contentStateMessage.IdEjecucionProceso = 1;//Dato del negocio
contentStateMessage.IdEjecucionPaso = 1;//Dato del negocio
contentStateMessage.Nombre = "Nombre del detalle";
contentStateMessage.Descripcion = "Descripción del detalle del paso";
contentStateMessage.IdTipo = DetailMessageType.Informativo;//Explorar opciones disponibles
//Enviar mensaje al topic para notificar cambio de estado
await ServiceSender.SendTopicAsync(TopicName, contentStateMessage, TopicMessageType.UpdateStepDetail);
//**********************************************************************************************
//Mensaje para notificar cambio de estado
dynamic contentStateMessage = new System.Dynamic.ExpandoObject();
contentStateMessage.IdEjecucionProceso = 1;//Dato del negocio
contentStateMessage.IdEjecucionPaso = 1;//Dato del negocio
contentStateMessage.IdEstado = ProcessStepState.Terminado;//Explorar opciones disponibles
//Enviar mensaje al topic para notificar detalle del paso
await ServiceSender.SendTopicAsync(TopicName, contentDetailMessage, TopicMessageType.UpdateStepState);
###Opciones disponibles para los tipos de mensaje
###Opciones disponibles para los tipos de mensajes de detalles de ejecución
###Opciones disponibles para los estados de los pasos
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Azure.Messaging.ServiceBus (>= 7.1.0)
- Microsoft.Azure.ServiceBus (>= 5.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Se mejora el envío de mensajes haciendo el cierre correcto de los recursos