You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Net/Endpoints/IEndpoint.cs

30 lines
989 B

2 years ago
using Connected.Data;
namespace Connected.Net.Endpoints;
/// <summary>
/// Represents a single endpoint in the environment.
/// </summary>
/// <remarks>
/// Each instance should be defined as an endpoint for other instances
/// to be able to find it on the network and communicate with it.
/// </remarks>
public interface IEndpoint : IPrimaryKey<int>
{
/// <summary>
/// The name of the Endpoint. This is descriptive property and has
/// no special meaning in the environment.
/// </summary>
string Name { get; init; }
/// <summary>
/// The IP address or Url of the instance where it responds to requests. This value
/// should be unique across the environment.
/// </summary>
string Address { get; init; }
/// <summary>
/// The endpoint status. For dynamic scale outs, endpoint could be defined but disabled when
/// not needed. If scaling is needed this value could automatically go to the <see cref="Status.Enabled"/>.
/// </summary>
Status Status { get; init; }
}