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