Skip to content

Commit

Permalink
Add Dependency Injection support for Channel<T>
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
frankhaugen committed Jan 31, 2024
1 parent b01a286 commit f3d047f
Show file tree
Hide file tree
Showing 17 changed files with 818 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Merge Workflow

on:
push:
branches: [main]
workflow_dispatch:

jobs:
merge_job:
name: Merge Job
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: frankhaugen/Workflows/.github/workflows/dotnet-publish-preview.yml@main
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull Request Workflow

on:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
pull_request_job:
name: Pull Request Job
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
uses: frankhaugen/Workflows/.github/workflows/dotnet-pull-request.yml@main
secrets: inherit
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release Workflow

on:
release:
types: [published]
workflow_dispatch:

jobs:
release_job:
name: Release Job
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
uses: frankhaugen/Workflows/.github/workflows/dotnet-publish-release.yml@main
secrets: inherit

Loading

0 comments on commit f3d047f

Please sign in to comment.