BinaryServerFormatterSink.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // System.Runtime.Remoting.Channels.BinaryServerFormatterSink.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // 2002 (C) Copyright, Ximian, Inc.
  7. //
  8. using System.Collections;
  9. using System.IO;
  10. using System.Runtime.Remoting.Messaging;
  11. namespace System.Runtime.Remoting.Channels {
  12. public class BinaryServerFormatterSink : IServerChannelSink, IChannelSinkBase
  13. {
  14. [Serializable]
  15. public enum Protocol
  16. {
  17. Http = 0,
  18. Other = 1,
  19. }
  20. IServerChannelSink next_sink;
  21. Protocol protocol;
  22. IChannelReceiver receiver;
  23. public BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol protocol,
  24. IServerChannelSink nextSink,
  25. IChannelReceiver receiver)
  26. {
  27. this.protocol = protocol;
  28. this.next_sink = nextSink;
  29. this.receiver = receiver;
  30. }
  31. public IServerChannelSink NextChannelSink {
  32. get {
  33. return next_sink;
  34. }
  35. }
  36. public IDictionary Properties {
  37. get {
  38. return null;
  39. }
  40. }
  41. [MonoTODO]
  42. public void AsyncProcessResponse (IServerResponseChannelSinkStack sinkStack, object state,
  43. IMessage msg, ITransportHeaders headers, Stream stream)
  44. {
  45. throw new NotImplementedException ();
  46. }
  47. public Stream GetResponseStream (IServerResponseChannelSinkStack sinkStack, object state,
  48. IMessage msg, ITransportHeaders headers)
  49. {
  50. // never called
  51. throw new NotSupportedException ();
  52. }
  53. [MonoTODO]
  54. public ServerProcessing ProcessMessage (IServerChannelSinkStack sinkStack,
  55. IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream,
  56. out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream)
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. }
  61. }