KamuIlanlar.Core.Contracts 1.0.0

Additional Details

A package added for testing purposes is no longer supported.

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package KamuIlanlar.Core.Contracts --version 1.0.0
                    
NuGet\Install-Package KamuIlanlar.Core.Contracts -Version 1.0.0
                    
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="KamuIlanlar.Core.Contracts" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KamuIlanlar.Core.Contracts" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="KamuIlanlar.Core.Contracts" />
                    
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 KamuIlanlar.Core.Contracts --version 1.0.0
                    
#r "nuget: KamuIlanlar.Core.Contracts, 1.0.0"
                    
#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 KamuIlanlar.Core.Contracts@1.0.0
                    
#: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=KamuIlanlar.Core.Contracts&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=KamuIlanlar.Core.Contracts&version=1.0.0
                    
Install as a Cake Tool

Core.Contracts

Shared contracts and DTOs for KamuIlanlar platform. Contains integration events, shared models, and cross-service communication contracts.

🚀 Features

  • Integration Events: Event contracts for cross-service communication
  • Shared DTOs: Common data transfer objects
  • API Contracts: Request/response models
  • Domain Events: Domain-specific event definitions
  • Version Compatibility: Backward-compatible event schemas

📦 Installation

dotnet add package KamuIlanlar.Core.Contracts

🔧 Event Contracts

Category Events

// Category lifecycle events
public record CategoryCreatedEvent(
    Guid CategoryId,
    string Name,
    string Slug,
    DateTime CreatedAt
) : IIntegrationEvent;

public record CategoryUpdatedEvent(
    Guid CategoryId,
    string Name,
    string Slug,
    DateTime UpdatedAt
) : IIntegrationEvent;

public record CategoryDeletedEvent(
    Guid CategoryId,
    DateTime DeletedAt
) : IIntegrationEvent;

Announcement Events

// Announcement lifecycle events
public record AnnouncementCreatedEvent(
    Guid AnnouncementId,
    string Title,
    Guid CategoryId,
    DateTime CreatedAt
) : IIntegrationEvent;

public record AnnouncementPublishedEvent(
    Guid AnnouncementId,
    DateTime PublishedAt
) : IIntegrationEvent;

🏗️ Structure

Events/
├── Categories/
│   ├── CategoryCreatedEvent.cs
│   ├── CategoryUpdatedEvent.cs
│   └── CategoryDeletedEvent.cs
├── Announcements/
│   ├── AnnouncementCreatedEvent.cs
│   └── AnnouncementPublishedEvent.cs
└── Users/
    ├── UserRegisteredEvent.cs
    └── UserActivatedEvent.cs

DTOs/
├── Categories/
├── Announcements/
└── Users/

📋 Event Schema Guidelines

  • Use record types for immutability
  • Include timestamp fields for audit trails
  • Use Guid for entity identifiers
  • Follow past tense naming (Created, Updated, Deleted)
  • Implement IIntegrationEvent interface

🔄 Versioning

Events follow semantic versioning:

  • Major: Breaking schema changes
  • Minor: Additive changes (new optional fields)
  • Patch: Bug fixes, documentation updates

📋 Requirements

  • .NET 9.0 or later
  • Core.Messaging.Abstractions (for IIntegrationEvent)

🤝 Contributing

When adding new contracts:

  1. Follow naming conventions
  2. Add comprehensive XML documentation
  3. Include usage examples
  4. Update this README

📄 License

MIT License

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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