Last active
May 4, 2018 16:15
-
-
Save jraps20/e2dbf8ef492f6c98fa2c59863d62740f 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 LogMessageRemote | |
{ | |
public void LogInstanceName(object sender, EventArgs args) | |
{ | |
var logMessageArgs = args as RemoteEventArgs<LogMessageRemoteEvent>; | |
if (logMessageArgs == null) | |
throw new InvalidOperationException("Unexpected event args: {0}".FormatWith((object) args.GetType().FullName)); | |
Log.Info($"Triggered from {logMessageArgs.InstanceName}.", (object) this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment