Skip to content

Instantly share code, notes, and snippets.

@cprieto
Created September 13, 2009 02:54
Show Gist options
  • Save cprieto/186058 to your computer and use it in GitHub Desktop.
Save cprieto/186058 to your computer and use it in GitHub Desktop.
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