Skip to content

Instantly share code, notes, and snippets.

@mtscout6
Created October 27, 2012 15:33
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 mtscout6/3965095 to your computer and use it in GitHub Desktop.
Save mtscout6/3965095 to your computer and use it in GitHub Desktop.
Simple Inherited Topic for FubuMVC.ServerSentEvents
public class SimpleTopic : Topic
{
public Guid SomeId { get; set; }
public override bool Equals(object obj)
{
return Equals(obj as SimpleTopic );
}
public bool Equals(SimpleTopic other)
{
if (ReferenceEquals(null, other)) return false;
return ReferenceEquals(this, other) || other.SomeId.Equals(SomeId);
}
public override int GetHashCode()
{
return SomeId.GetHashCode();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment