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/Server/IEndpointServer.cs

24 lines
570 B

2 years ago
using System.Collections.Immutable;
using Connected.Annotations;
using Connected.Net.Endpoints;
namespace Connected.Net.Server;
[Service]
[ServiceUrl(Routes.Server)]
public interface IEndpointServer
{
event EventHandler<ServerChangedArgs>? Changed;
event EventHandler Initialized;
Task Initialize(ImmutableList<IEndpoint> endpoints, CancellationToken cancellationToken);
[ServiceMethod(ServiceMethodVerbs.Post)]
Task NotifyServerChange(ServerProposalArgs args);
[ServiceMethod(ServiceMethodVerbs.Get)]
Task<bool> IsServer();
string ServerUrl { get; }
}