Create a gist now

Instantly share code, notes, and snippets.

public class Example
{
private readonly IMediator _mediator;
public Example(IMediator mediator)
{
_mediator = mediator;
}
public void DoSomething()
{
_mediator.Send<Unit>(new MyCommand());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment