Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Release.cs
1using System;
2using System.Collections.Generic;
3using System.Net;
4using System.Threading.Tasks;
5
7{
12 public class Release : IClusterMessage
13 {
17 public string Resource
18 {
19 get;
20 set;
21 }
22
30 public Task<bool> MessageReceived(ClusterEndpoint Endpoint, IPEndPoint RemoteEndpoint)
31 {
32 Endpoint.Released(this.Resource);
33 return Task.FromResult(true);
34 }
35 }
36}
Represents one endpoint (or participant) in the network cluster.
Message used to inform other members that the sending endpoint is releasing a locked resource.
Definition: Release.cs:13
Task< bool > MessageReceived(ClusterEndpoint Endpoint, IPEndPoint RemoteEndpoint)
Method called when the message has been received.
Definition: Release.cs:30
string Resource
Released resource.
Definition: Release.cs:18
Interface for cluster messages.