IRPCClientTransport.cs 717 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using InABox.Clients;
  3. using InABox.Core;
  4. namespace InABox.Rpc
  5. {
  6. public interface IRpcClientTransport : IRpcTransport
  7. {
  8. bool Ping();
  9. DatabaseInfo Info();
  10. void Connect();
  11. void Send(RpcMessage message);
  12. TResult Send<TCommand, TParameters, TResult>(TParameters parameters)
  13. where TCommand : IRpcCommand<TParameters,TResult>
  14. where TParameters : IRpcCommandParameters, ISerializeBinary
  15. where TResult : IRpcCommandResult, ISerializeBinary, new();
  16. void Disconnect();
  17. event RpcTransportMessageEvent OnMessage;
  18. bool IsConnected();
  19. bool IsSecure();
  20. }
  21. }