IRPCClientTransport.cs 661 B

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