Created
September 13, 2009 02:54
-
-
Save cprieto/186058 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 BlogCommentPosted : IBlogEvent { | |
public BlogComment Comment { get; set; } | |
} | |
public static Class BlogEvent : ICommonEvent | |
{ | |
public static void Raise<T>(T eventArg) | |
where T : ICommonEvent { | |
var events = IoC.Current.ResolveAll<Handles<T>>(); | |
foreach (var @event in events) { | |
@event.Handle(eventArg); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment