Ousianic.Core.AspNetCore 1.0.0-preview.6

This is a prerelease version of Ousianic.Core.AspNetCore.
dotnet add package Ousianic.Core.AspNetCore --version 1.0.0-preview.6
                    
NuGet\Install-Package Ousianic.Core.AspNetCore -Version 1.0.0-preview.6
                    
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="Ousianic.Core.AspNetCore" Version="1.0.0-preview.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ousianic.Core.AspNetCore" Version="1.0.0-preview.6" />
                    
Directory.Packages.props
<PackageReference Include="Ousianic.Core.AspNetCore" />
                    
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 Ousianic.Core.AspNetCore --version 1.0.0-preview.6
                    
#r "nuget: Ousianic.Core.AspNetCore, 1.0.0-preview.6"
                    
#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 Ousianic.Core.AspNetCore@1.0.0-preview.6
                    
#: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=Ousianic.Core.AspNetCore&version=1.0.0-preview.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ousianic.Core.AspNetCore&version=1.0.0-preview.6&prerelease
                    
Install as a Cake Tool

Ousianic.Core

Building blocks compartilhados entre os produtos da Ousianic: value objects de domínio, catálogo de erros, contratos de eventos, mensageria, notificações e integrações.

Publicado como seis pacotes separados por afinidade de dependência — você referencia só o que usa, sem arrastar Twilio, Hangfire ou EF Core para um projeto que só precisa validar um CPF.

Pacotes

Pacote Para que serve Dependências pesadas
Ousianic.Core Value objects, enums, catálogo de erros, contratos de evento, CQRS base, JWT nenhuma — usável de console, worker, Blazor ou biblioteca
Ousianic.Core.AspNetCore Autorização por permissão e feature gating por plano ASP.NET Core
Ousianic.Core.Messaging Publisher e consumers ActiveMQ com retry e DLQ Apache.NMS.ActiveMQ, Polly
Ousianic.Core.Persistence Repositório base, filtros e setup de Hangfire EF Core, Hangfire, MySqlConnector
Ousianic.Core.Notifications E-mail, SMS e WhatsApp Twilio
Ousianic.Core.Integrations Storage S3, otimização de imagem, gateways de pagamento, IA AWS SDK, ImageSharp, StarkBank, Anthropic

Todos versionados em lockstep: a mesma versão sai para os seis ao mesmo tempo.

Instalação

dotnet add package Ousianic.Core
dotnet add package Ousianic.Core.AspNetCore   # se precisar de autorização/feature gating

Uso

Value objects validam na construção e lançam DomainException com um código do EErrorCatalog:

using Ousianic.Core.Domain.ValueObject;

var email = EmailAddress.Create("contato@ousianic.com");
var doc   = RegistrationId.Create("12.345.678/0001-95");   // CPF ou CNPJ

Console.WriteLine(doc.Type);   // Cnpj

Eventos de integração herdam EventBase e são publicáveis via MediatR ou ActiveMQ:

using Ousianic.Core.Event.Billing;

await publisher.PublishAsync(new DebtCreatedEvent
{
    Id = debtId,
    TenantId = tenantId,
    TotalAmount = 1_250.00m,
});

Compatibilidade

net8.0. Ousianic.Core não referencia ASP.NET Core — os pacotes AspNetCore e Persistence sim.

Licença

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  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

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.0-preview.6 142 9/8/2026
1.0.0-preview.5 173 9/4/2026
1.0.0-preview.4 156 8/26/2026
1.0.0-preview.3 71 8/26/2026
1.0.0-preview.2 186 8/4/2026
1.0.0-preview.1 71 8/4/2026