Skip to content

Commit f3d047f

Browse files
committed
Add Dependency Injection support for Channel<T>
This commit adds a new functionality that enables Dependency Injection for Channel<T> in a concise way. It accomplishes this through the introduction of the `IChannelFactory` interface, the `ChannelFactory` class, and the `ServiceCollectionExtensions` static class. The changes also include the necessary test files and workflow files for pull requests, merges, and releases. The overall aim of this addition is to make interacting with Channels much more manageable and straightforward when using Dependency Injection.
1 parent b01a286 commit f3d047f

17 files changed

+818
-0
lines changed

.github/workflows/merge.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Merge Workflow
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
merge_job:
10+
name: Merge Job
11+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
12+
uses: frankhaugen/Workflows/.github/workflows/dotnet-publish-preview.yml@main
13+
secrets: inherit

.github/workflows/pull-request.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Pull Request Workflow
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
pull_request_job:
10+
name: Pull Request Job
11+
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
12+
uses: frankhaugen/Workflows/.github/workflows/dotnet-pull-request.yml@main
13+
secrets: inherit

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Workflow
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_job:
10+
name: Release Job
11+
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
12+
uses: frankhaugen/Workflows/.github/workflows/dotnet-publish-release.yml@main
13+
secrets: inherit
14+

0 commit comments

Comments
 (0)