VOOZH about

URL: https://www.nuget.org/packages/Pipoburgos.SharedKernel.Api/

⇱ NuGet Gallery | Pipoburgos.SharedKernel.Api 10.0.9




👁 Image
Pipoburgos.SharedKernel.Api 10.0.9

dotnet add package Pipoburgos.SharedKernel.Api --version 10.0.9
 
 
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 10.0.9
 
 
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="Pipoburgos.SharedKernel.Api" Version="10.0.9" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pipoburgos.SharedKernel.Api" Version="10.0.9" />
 
Directory.Packages.props
<PackageReference Include="Pipoburgos.SharedKernel.Api" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pipoburgos.SharedKernel.Api --version 10.0.9
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pipoburgos.SharedKernel.Api, 10.0.9"
 
 
#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.
#:package Pipoburgos.SharedKernel.Api@10.0.9
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pipoburgos.SharedKernel.Api&version=10.0.9
 
Install as a Cake Addin
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=10.0.9
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

The following code demonstrates basic usage of SharedKernel api.

appsettings.json

{
 "AllowedHosts": "",
 "Origins": [
 "https://localhost/"
 ],
 "SmtpSettings": {
 "MailServer": "smtp",
 "MailPort": 587,
 "SenderName": "SharedKernel@SharedKernel.com",
 "Sender": "SharedKernel@SharedKernel.com",
 "Password": "SharedKernel"
 },
 "OpenApiOptions": {
 "Title": "SharedKernel",
 "AppName": "SharedKernel",
 "Name": "SharedKernel",
 "XmlDocumentationFile": "SharedKernel.Api.xml"
 },
 "ConnectionStrings": {
 "PaymentConnection": "Server=.;Database=Payment;Trusted_Connection=True;MultipleActiveResultSets=true;Application Name=Payment;",
 "PurchasingConnection": "Server=.;Database=Purchasing;Trusted_Connection=True;MultipleActiveResultSets=true;Application Name=Purchasing;"
 },
 "RabbitMq": {
 "Username": "guest",
 "Password": "guest",
 "Hostname": "localhost",
 "port": "5672"
 },
 "RedisCacheOptions": {
 "ConnectionString": "localhost:6379",
 "Configuration": "localhost:6379",
 "InstanceName": "sharedKernel"
 },
}

Startup.cs

public class Startup
{
public class Startup
 {
 private const string CorsPolicy = "CorsPolicy";

 private IConfiguration Configuration { get; }

 public Startup(IConfiguration configuration)
 {
 Configuration = configuration;
 }

 public void ConfigureServices(IServiceCollection services)
 {
 services
 .AddSharedKernel()
 .AddSharedKernelApi<FluentApiSampleValidator>(CorsPolicy, Configuration.GetSection("Origins").Get<string[]>())
 .AddSharedKernelHealthChecks()
 .AddSharedKernelOpenApi(Configuration)
 
 // Cache
 .AddRedisDistributedCache(Configuration)
 // .AddInMemoryCache()
 
 .AddInMemoryCommandBus()
 
 .AddInMemoryQueryBus()

 // Event bus
 .AddRabbitMqEventBus(Configuration)
 // .AddInMemoryEventBus()
 //.AddRedisEventBus(Configuration)

 // Add modules
 
 .AddPaymentModule(Configuration, "PaymentConnection")
 .AddPurchasingModule(Configuration, "PurchasingConnection")

 // Register all domain event subscribers
 .AddDomainEventSubscribers();
 }

 public void Configure(IApplicationBuilder app, IOptions<OpenApiOptions> options)
 {
 // Other usages

 app.UseCors(CorsPolicy);

 // Other usages 

 app
 .UseEndpoints(endpoints =>
 {
 endpoints.MapHealthChecks("/health", new HealthCheckOptions
 {
 ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
 });

 endpoints.MapControllers();
 })
 .UseSharedKernelMetrics()
 .UseSharedKernelOpenApi(options);
 }
 }
}
Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Pipoburgos.SharedKernel.Api:

Package Downloads
Pipoburgos.SharedKernel.Testing

C# Testing

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.9 22 6/17/2026
10.0.8.3 129 6/2/2026
10.0.8.2 119 5/19/2026
10.0.8.1 117 5/13/2026
10.0.7.2 116 5/6/2026
10.0.7.1 132 4/23/2026
10.0.6.1 144 4/15/2026
10.0.5.2 171 3/24/2026
10.0.5.1 141 3/20/2026
10.0.5 151 3/16/2026
10.0.0 401 12/7/2025
9.0.8.2 326 8/20/2025
9.0.8.1 373 8/6/2025
9.0.7.1 315 7/9/2025
9.0.6.1 350 6/16/2025
9.0.5.1 332 6/4/2025
9.0.4.2 359 5/7/2025
9.0.4.1 350 5/7/2025
9.0.3.3 334 4/6/2025
9.0.3.2 691 3/26/2025
Loading failed