Domain.Tweet.Delete C# (CSharp) Method

Delete() public method

public Delete ( System.Guid tweetID ) : void
tweetID System.Guid
return void
        public void Delete(Guid tweetID)
        {
            var e = new TweetDeletedEvent(Guid.NewGuid(), Guid.Empty, this.InitialVersion+1, DateTime.UtcNow)
            {
                TweetID = tweetID,
                TimeStamp = DateTime.UtcNow
            };

            ApplyEvent(e);
        }