Last active
August 29, 2015 14:22
-
-
Save mskutta/340a7d1ac62087c77d50 to your computer and use it in GitHub Desktop.
The messages sent over the service bus
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 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