RPCTransportClose.cs 537 B

1234567891011121314151617181920212223
  1. namespace InABox.Rpc
  2. {
  3. public enum RpcTransportCloseEventType
  4. {
  5. Closed,
  6. Error
  7. }
  8. public class RpcTransportCloseArgs
  9. {
  10. public IRpcSession? Session { get; set; }
  11. public RpcTransportCloseEventType Type { get; }
  12. public RpcTransportCloseArgs(IRpcSession? session, RpcTransportCloseEventType type)
  13. {
  14. Session = session;
  15. Type = type;
  16. }
  17. }
  18. public delegate void RpcTransportCloseEvent(IRpcTransport transport, RpcTransportCloseArgs e);
  19. }