Skip to content

Instantly share code, notes, and snippets.

@mskutta
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mskutta/340a7d1ac62087c77d50 to your computer and use it in GitHub Desktop.
Save mskutta/340a7d1ac62087c77d50 to your computer and use it in GitHub Desktop.
The messages sent over the service bus
public interface IEvent
{
Guid Id { get; set; }
}
[Serializable]
public class CreatedEvent<TEntity> : IEvent
where TEntity : class
{
public Guid Id { get; set; }
public TEntity Entity { get; set; }
}
[Serializable]
public class UpdatedEvent<TEntity> : IEvent
where TEntity : class
{
public Guid Id { get; set; }
public TEntity Entity { get; set; }
}
[Serializable]
public class DeletedEvent<TEntity> : IEvent
where TEntity : class
{
public Guid Id { get; set; }
public TEntity Entity { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment