-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
163 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...lineNet.ServiceProvider/ChainOfResponsibilityFactories/AsyncResponsibilityChainFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using PipelineNet.ChainsOfResponsibility; | ||
using PipelineNet.ServiceProvider.MiddlewareResolver; | ||
using System; | ||
|
||
namespace PipelineNet.ServiceProvider.ChainOfResponsibilityFactories | ||
{ | ||
/// <inheritdoc/> | ||
public class AsyncResponsibilityChainFactory<TParameter, TReturn> | ||
: IAsyncResponsibilityChainFactory<TParameter, TReturn> | ||
{ | ||
/// <inheritdoc/> | ||
public IAsyncResponsibilityChain<TParameter, TReturn> Create(IServiceProvider serviceProvider) | ||
{ | ||
if (serviceProvider == null) throw new ArgumentNullException("serviceProvider"); | ||
|
||
return new AsyncResponsibilityChain<TParameter, TReturn>( | ||
new ServiceProviderMiddlewareResolver(serviceProvider)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/PipelineNet.ServiceProvider/ChainOfResponsibilityFactories/ResponsibilityChainFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using PipelineNet.ChainsOfResponsibility; | ||
using PipelineNet.ServiceProvider.MiddlewareResolver; | ||
using System; | ||
|
||
namespace PipelineNet.ServiceProvider.ChainOfResponsibilityFactories | ||
{ | ||
/// <inheritdoc/> | ||
public class ResponsibilityChainFactory<TParameter, TReturn> | ||
: IResponsibilityChainFactory<TParameter, TReturn> | ||
{ | ||
/// <inheritdoc/> | ||
public IResponsibilityChain<TParameter, TReturn> Create(IServiceProvider serviceProvider) | ||
{ | ||
if (serviceProvider == null) throw new ArgumentNullException("serviceProvider"); | ||
|
||
return new ResponsibilityChain<TParameter, TReturn>( | ||
new ServiceProviderMiddlewareResolver(serviceProvider)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/PipelineNet.ServiceProvider/PipelineFactories/AsyncPipelineFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using PipelineNet.Pipelines; | ||
using PipelineNet.ServiceProvider.MiddlewareResolver; | ||
using System; | ||
|
||
namespace PipelineNet.ServiceProvider.PipelineFactories | ||
{ | ||
/// <inheritdoc/> | ||
public class AsyncPipelineFactory<TParameter> | ||
: IAsyncPipelineFactory<TParameter> | ||
{ | ||
/// <inheritdoc/> | ||
public IAsyncPipeline<TParameter> Create(IServiceProvider serviceProvider) | ||
{ | ||
if (serviceProvider == null) throw new ArgumentNullException("serviceProvider"); | ||
|
||
return new AsyncPipeline<TParameter>( | ||
new ServiceProviderMiddlewareResolver(serviceProvider)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/PipelineNet.ServiceProvider/PipelineFactories/PipelineFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using PipelineNet.Pipelines; | ||
using PipelineNet.ServiceProvider.MiddlewareResolver; | ||
using System; | ||
|
||
namespace PipelineNet.ServiceProvider.PipelineFactories | ||
{ | ||
/// <inheritdoc/> | ||
public class PipelineFactory<TParameter> | ||
: IPipelineFactory<TParameter> | ||
{ | ||
/// <inheritdoc/> | ||
public IPipeline<TParameter> Create(IServiceProvider serviceProvider) | ||
{ | ||
if (serviceProvider == null) throw new ArgumentNullException("serviceProvider"); | ||
|
||
return new Pipeline<TParameter>( | ||
new ServiceProviderMiddlewareResolver(serviceProvider)); | ||
} | ||
} | ||
} |
Oops, something went wrong.