Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created June 10, 2016 01:30
Show Gist options
  • Save dcomartin/c17cd2ae693f9a52d81d5eccc0b03416 to your computer and use it in GitHub Desktop.
Save dcomartin/c17cd2ae693f9a52d81d5eccc0b03416 to your computer and use it in GitHub Desktop.
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