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/Network/Contract/IExClient.cs

30 lines
705 B

6 years ago
using System;
using System.Net;
using ZeroLevel.Models;
namespace ZeroLevel.Services.Network
{
public interface IExClient
: IDisposable
6 years ago
{
event Action Connected;
void ForceConnect();
ZTransportStatus Status { get; }
6 years ago
IPEndPoint Endpoint { get; }
6 years ago
InvokeResult Send<T>(T obj);
6 years ago
InvokeResult Send<T>(string inbox, T obj);
6 years ago
InvokeResult Request<Treq, Tresp>(Treq obj, Action<Tresp> callback);
6 years ago
InvokeResult Request<Treq, Tresp>(string inbox, Treq obj, Action<Tresp> callback);
InvokeResult Request<Tresp>(Action<Tresp> callback);
6 years ago
InvokeResult Request<Tresp>(string inbox, Action<Tresp> callback);
}
}

Powered by TurnKey Linux.