2using System.Collections.Generic;
 
    4using System.Threading.Tasks;
 
   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....
string Resource
Resource to lock.
Task< bool > MessageReceived(ClusterEndpoint Endpoint, IPEndPoint RemoteEndpoint)
Method called when the message has been received.
Interface for cluster messages.