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.
Zero/ZeroLevel/Services/IZeroService.cs

41 lines
1.0 KiB

using System;
using System.Net;
using ZeroLevel.Network;
namespace ZeroLevel
{
public interface IZeroService
: IDisposable
{
string Name { get; }
string Key { get; }
string Version { get; }
string Group { get; }
string Type { get; }
void UseDiscovery();
void UseDiscovery(string url);
void UseDiscovery(IPEndPoint endpoint);
IRouter UseHost();
IRouter UseHost(int port);
IRouter UseHost(IPEndPoint endpoint);
ExClient ConnectToService(string url);
ExClient ConnectToService(IPEndPoint endpoint);
void ReadServiceInfo();
void ReadServiceInfo(IConfigurationSet config);
void WaitForStatus(ZeroServiceStatus status);
void WaitForStatus(ZeroServiceStatus status, TimeSpan period);
void WaitWhileStatus(ZeroServiceStatus status);
void WaitWhileStatus(ZeroServiceStatus status, TimeSpan period);
ZeroServiceStatus Status { get; }
void Start();
void Stop();
}
}

Powered by TurnKey Linux.