-
Notifications
You must be signed in to change notification settings - Fork 17
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
1 parent
ba5a218
commit 95058d2
Showing
48 changed files
with
640 additions
and
125 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
using FluentMediator.Pipelines.CancellablePipelineAsync; | ||
using FluentMediator.Pipelines.Pipeline; | ||
using FluentMediator.Pipelines.PipelineAsync; | ||
|
||
namespace FluentMediator | ||
{ | ||
public interface IMediator : Pipelines.Pipeline.IMediator, | ||
Pipelines.PipelineAsync.IMediator, | ||
Pipelines.CancellablePipelineAsync.IMediator { } | ||
/// <summary> | ||
/// Publishes/Sends messages through the Pipelines | ||
/// </summary> | ||
public interface IMediator: | ||
ISyncMediator, | ||
IAsyncMediator, | ||
ICancellableMediator { } | ||
} |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
using FluentMediator.Pipelines.CancellablePipelineAsync; | ||
using FluentMediator.Pipelines.Pipeline; | ||
using FluentMediator.Pipelines.PipelineAsync; | ||
|
||
namespace FluentMediator | ||
{ | ||
public interface IPipelineProvider : Pipelines.Pipeline.IPipelineProvider, | ||
Pipelines.PipelineAsync.IPipelineProvider, | ||
Pipelines.CancellablePipelineAsync.IPipelineProvider { } | ||
/// <summary> | ||
/// Retrieves a Pipeline for a specific Message | ||
/// </summary> | ||
public interface IPipelineProvider: | ||
ISyncPipelineProvider, | ||
IAsyncPipelineProvider, | ||
ICancellablePipelineProvider { } | ||
} |
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 |
---|---|---|
@@ -1,12 +1,29 @@ | ||
using FluentMediator.Pipelines; | ||
using FluentMediator.Pipelines.CancellablePipelineAsync; | ||
using FluentMediator.Pipelines.Pipeline; | ||
using FluentMediator.Pipelines.PipelineAsync; | ||
|
||
namespace FluentMediator | ||
{ | ||
public interface IPipelineProviderBuilder : Pipelines.Pipeline.IPipelineProviderBuilder, | ||
Pipelines.PipelineAsync.IPipelineProviderBuilder, | ||
Pipelines.CancellablePipelineAsync.IPipelineProviderBuilder | ||
/// <summary> | ||
/// Builds pipelines for a specific message | ||
/// </summary> | ||
public interface IPipelineProviderBuilder: | ||
ISyncPipelineProviderBuilder, | ||
IAsyncPipelineProviderBuilder, | ||
ICancellablePipelineProviderBuilder | ||
{ | ||
/// <summary> | ||
/// Begin building a pipeline for a specific message | ||
/// </summary> | ||
/// <typeparam name="TRequest">Message Type</typeparam> | ||
/// <returns>A more specific PipelineBehavior</returns> | ||
IPipelineBehavior<TRequest> On<TRequest>(); | ||
|
||
/// <summary> | ||
/// Builds the pipeline | ||
/// </summary> | ||
/// <returns>An immutable Pipeline Provider</returns> | ||
IPipelineProvider Build(); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
namespace FluentMediator | ||
{ | ||
public class NullRequestException: MediatorException | ||
/// <summary> | ||
/// Occurs when the message is null | ||
/// </summary> | ||
public class NullRequestException : MediatorException | ||
{ | ||
public NullRequestException() { } | ||
/// <summary> | ||
/// Instantiate an Exception | ||
/// </summary> | ||
/// <param name="message">The message</param> | ||
/// <returns>An Exception instance</returns> | ||
public NullRequestException(string message) : base(message) { } | ||
public NullRequestException(string message, System.Exception inner) : base(message, inner) { } | ||
} | ||
} |
Oops, something went wrong.