Intergrupo.ServiceBusHelper 1.0.8

There is a newer version of this package available.
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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Intergrupo.ServiceBusHelper" Version="1.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Intergrupo.ServiceBusHelper --version 1.0.8
#r "nuget: Intergrupo.ServiceBusHelper, 1.0.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 Posibles tipos de mensaje!

###Opciones disponibles para los tipos de mensajes de detalles de ejecución Posibles estados de pasos!

###Opciones disponibles para los estados de los pasos Posibles estados de pasos!

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.10 2,556 10/21/2021
1.0.9 1,093 9/6/2021
1.0.8 3,998 2/10/2021
1.0.7 1,846 1/21/2021
1.0.6 1,006 12/29/2020
1.0.5 786 12/28/2020
1.0.4 716 12/28/2020
1.0.3 765 12/24/2020
1.0.2 824 11/24/2020
1.0.1 909 11/24/2020
1.0.0 823 11/23/2020

Se mejora el envío de mensajes haciendo el cierre correcto de los recursos