4using System.Threading.Tasks;
18 public string Resource
33 lock (Endpoint.lockedResources)
35 return Task.FromResult<
bool>(!Endpoint.lockedResources.ContainsKey(this.Resource));
Represents one endpoint (or participant) in the network cluster.
Message used to inform other members that the sending endpoint is trying to lock a resource....
Task< bool > MessageReceived(ClusterEndpoint Endpoint, IPEndPoint RemoteEndpoint)
Method called when the message has been received.
Interface for cluster messages.