Skip to content

Commit b976156

Browse files
authored
Release/v4.0.1
1 parent 155be87 commit b976156

10 files changed

Lines changed: 149 additions & 20 deletions

File tree

.github/workflows/Master-Build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: master-build
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
paths-ignore:
10+
- "**/*.md"
11+
- "**/*.gitignore"
12+
- "**/*.gitattributes"
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v3
20+
with:
21+
dotnet-version: 9.0.x
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
- name: Build
25+
run: dotnet build --no-restore
26+
- name: Test
27+
run: dotnet test --no-build --verbosity normal
28+
29+
run-Lint:
30+
runs-on: ubuntu-latest
31+
env:
32+
github-token: '${{ secrets.GITHUB_TOKEN }}'
33+
steps:
34+
- name: Step-01 Checkout code
35+
uses: actions/checkout@v3
36+
with:
37+
fetch-depth: 0
38+
- name: Step-02 Lint Code Base
39+
uses: github/super-linter@v4
40+
env:
41+
VALIDATE_ALL_CODEBASE: false
42+
FILTER_REGEX_INCLUDE: .*src/.*
43+
DEFAULT_BRANCH: master
44+
GITHUB_TOKEN: '${{ env.github-token }}'
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "master-codeQL"
13+
14+
on:
15+
push:
16+
branches:
17+
- master
18+
paths-ignore:
19+
- "**/*.md"
20+
- "**/*.gitignore"
21+
- "**/*.gitattributes"
22+
schedule:
23+
- cron: '35 15 * * 2'
24+
25+
jobs:
26+
analyze:
27+
name: Analyze
28+
runs-on: ubuntu-latest
29+
permissions:
30+
actions: read
31+
contents: read
32+
security-events: write
33+
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
language: [ 'csharp' ]
38+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
39+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
40+
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v3
44+
45+
# Initializes the CodeQL tools for scanning.
46+
- name: Initialize CodeQL
47+
uses: github/codeql-action/init@v2
48+
with:
49+
languages: ${{ matrix.language }}
50+
# If you wish to specify custom queries, you can do so here or in a config file.
51+
# By default, queries listed here will override any specified in a config file.
52+
# Prefix the list here with "+" to use these queries and those in the config file.
53+
54+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55+
# queries: security-extended,security-and-quality
56+
57+
58+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59+
# If this step fails, then you should remove it and run the build manually (see below)
60+
- name: Autobuild
61+
uses: github/codeql-action/autobuild@v2
62+
63+
# ℹ️ Command-line programs to run using the OS shell.
64+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65+
66+
# If the Autobuild fails above, remove it and uncomment the following three lines.
67+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
68+
69+
# - run: |
70+
# echo "Run, Build Application using script"
71+
# ./location_of_script_within_repo/buildscript.sh
72+
73+
- name: Perform CodeQL Analysis
74+
uses: github/codeql-action/analyze@v2
75+
with:
76+
category: "/language:${{matrix.language}}"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: pullrequest-Ci
22
'on':
33
pull_request:
44
types: [opened, reopened, edited, synchronize]
@@ -13,7 +13,7 @@ jobs:
1313
github-token: '${{ secrets.GH_Packages }}'
1414
steps:
1515
- name: Step-01 Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
1919
- name: Step-02 Lint Code Base
@@ -39,7 +39,7 @@ jobs:
3939
versionSpec: 5.x
4040

4141
- name: Step-02 Check out Code
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
4545

@@ -67,7 +67,7 @@ jobs:
6767
working-directory: '${{ env.working-directory }}'
6868

6969
- name: Step-08 Upload Build Artifacts
70-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
7171
with:
7272
name: build-artifact
7373
path: ${{env.working-directory}}
@@ -88,7 +88,7 @@ jobs:
8888
versionSpec: 5.x
8989

9090
- name: Step-02 Check out Code
91-
uses: actions/checkout@v2
91+
uses: actions/checkout@v4
9292
with:
9393
fetch-depth: 0
9494

@@ -117,7 +117,7 @@ jobs:
117117
working-directory: '${{ env.working-directory }}'
118118

119119
- name: Step-08 Upload Build Artifacts
120-
uses: actions/upload-artifact@v3
120+
uses: actions/upload-artifact@v4
121121
with:
122122
name: build-artifact
123123
path: ${{env.working-directory}}
@@ -135,7 +135,7 @@ jobs:
135135
working-directory: /home/runner/work/DomainEvents/DomainEvents
136136
steps:
137137
- name: Step-01 Retrieve Build Artifacts
138-
uses: actions/download-artifact@v3
138+
uses: actions/download-artifact@v4
139139
with:
140140
name: build-artifact
141141
path: ${{env.working-directory}}

GitVersion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
next-version: 4.0.0
1+
next-version: 4.0.1
22
tag-prefix: '[vV]'
33
mode: ContinuousDeployment
44
branches:

License.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Tech Ninja Labs
3+
Copyright (c) 2025 Code Shayk
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Ninja.DomainEvents.sln

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".misc", ".misc", "{D4BE57FE
2323
EndProject
2424
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "github", "github", "{FA9A86C9-07AD-4D6F-958B-8EBE227F8765}"
2525
ProjectSection(SolutionItems) = preProject
26-
.github\workflows\CI-Build.yml = .github\workflows\CI-Build.yml
26+
.github\workflows\Master-Build.yml = .github\workflows\Master-Build.yml
27+
.github\workflows\Master-CodeQL.yml = .github\workflows\Master-CodeQL.yml
28+
PR-CodeQL.yml = PR-CodeQL.yml
29+
.github\workflows\PR-CI.yml = .github\workflows\PR-CI.yml
2730
EndProjectSection
2831
EndProject
2932
Global
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: "pullrequest-codeQL"
1313

1414
on:
1515
pull_request:

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
# <img src="https://github.com/CodeShayk/DomainEvents/blob/master/ninja-icon-16.png" alt="ninja" style="width:30px;"/> DomainEvents v4.0.0
2-
[![NuGet version](https://badge.fury.io/nu/Dormito.DomainEvents.svg)](https://badge.fury.io/nu/Dormito.DomainEvents) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/CodeShayk/DomainEvents/blob/master/License.md) [![CI](https://github.com/CodeShayk/DomainEvents/actions/workflows/CI-Build.yml/badge.svg)](https://github.com/CodeShayk/DomainEvents/actions/workflows/CI-Build.yml) [![GitHub Release](https://img.shields.io/github/v/release/CodeShayk/DomainEvents?logo=github&sort=semver)](https://github.com/CodeShayk/DomainEvents/releases/latest)
3-
[![CodeQL](https://github.com/CodeShayk/DomainEvents/actions/workflows/codeql.yml/badge.svg)](https://github.com/CodeShayk/DomainEvents/actions/workflows/codeql.yml) [![.Net 9.0](https://img.shields.io/badge/.Net%20-9.0-blue)](https://dotnet.microsoft.com/en-us/download/dotnet/9)
1+
# <img src="https://github.com/CodeShayk/DomainEvents/blob/master/ninja-icon-16.png" alt="ninja" style="width:30px;"/> DomainEvents v4.0.1
2+
[![NuGet version](https://badge.fury.io/nu/Dormito.DomainEvents.svg)](https://badge.fury.io/nu/Dormito.DomainEvents)
3+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/CodeShayk/DomainEvents/blob/master/License.md)
4+
[![Build](https://github.com/CodeShayk/DomainEvents/actions/workflows/master-build.yml/badge.svg)](https://github.com/CodeShayk/DomainEvents/actions/workflows/master-build.yml)
5+
[![CodeQL](https://github.com/CodeShayk/DomainEvents/actions/workflows/master-codeQL.yml/badge.svg)](https://github.com/CodeShayk/DomainEvents/actions/workflows/master-codeQL.yml)
6+
[![GitHub Release](https://img.shields.io/github/v/release/CodeShayk/DomainEvents?logo=github&sort=semver)](https://github.com/CodeShayk/DomainEvents/releases/latest)
7+
[![.Net 9.0](https://img.shields.io/badge/.Net-9.0-blue)](https://dotnet.microsoft.com/en-us/download/dotnet/9.0)
8+
[![.Net Standard 2.0](https://img.shields.io/badge/.NetStandard-2.0-green)](https://github.com/dotnet/standard/blob/v2.0.0/docs/versions/netstandard2.0.md)
9+
[![.Net Framework 4.6.4](https://img.shields.io/badge/.Net-4.6.4-blue)](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net46)
410
## Library to help implement transactional events in domain bounded context.
511
Use domain events to explicitly implement side effects of changes within your domain. In other words, and using DDD terminology, use domain events to explicitly implement side effects across multiple aggregates.
612
### What is a Domain Event?

src/DomainEvents/DomainEvents.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net9.0</TargetFrameworks>
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -21,17 +21,17 @@
2121
<Company>Code Shayk</Company>
2222
<Product>DomainEvents</Product>
2323
<Description>.Net Library to implement transactional events in domain model.</Description>
24-
<Copyright>Copyright (c) 2024 Code Shayk</Copyright>
24+
<Copyright>Copyright (c) 2025 Code Shayk</Copyright>
2525
<PackageReadmeFile>README.md</PackageReadmeFile>
2626
<RepositoryUrl>https://github.com/CodeShayk/DomainEvents</RepositoryUrl>
2727
<RepositoryType>git</RepositoryType>
2828
<PackageTags>domain-events; domain events; .net9.0; c# domain events; domain pub/sub; event pub sub</PackageTags>
29-
<Version>4.0.0</Version>
29+
<Version>4.0.1</Version>
3030
<PackageIcon>ninja-icon-16.png</PackageIcon>
3131
<GenerateDocumentationFile>True</GenerateDocumentationFile>
3232
<PackageProjectUrl>https://github.com/CodeShayk/DomainEvents/wiki</PackageProjectUrl>
33-
<PackageReleaseNotes>Release v4.0.0
34-
- Targets .Net 9.0</PackageReleaseNotes>
33+
<PackageReleaseNotes>Release v4.0.1- Targets .Net Framework 4.6.2, .Net Standards 2.0 and 2.1, .Net 9.0
34+
</PackageReleaseNotes>
3535
</PropertyGroup>
3636

3737
<ItemGroup>

src/DomainEvents/IPublisher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ namespace DomainEvents
77
/// </summary>
88
public interface IPublisher
99
{
10-
public Task RaiseAsync<T>(T @event) where T : IDomainEvent;
10+
Task RaiseAsync<T>(T @event) where T : IDomainEvent;
1111
}
1212
}

0 commit comments

Comments
 (0)