ContextOutputChannel.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Channels
  5. {
  6. using System;
  7. using System.Collections.Generic;
  8. using System.ServiceModel;
  9. class ContextOutputChannel : ContextOutputChannelBase<IOutputChannel>, IOutputChannel
  10. {
  11. ClientContextProtocol contextProtocol;
  12. public ContextOutputChannel(ChannelManagerBase channelManager, IOutputChannel innerChannel,
  13. ContextExchangeMechanism contextExchangeMechanism, Uri callbackAddress, bool contextManagementEnabled)
  14. : base(channelManager, innerChannel)
  15. {
  16. this.contextProtocol = new ClientContextProtocol(contextExchangeMechanism, this.InnerChannel.Via, this, callbackAddress, contextManagementEnabled);
  17. }
  18. protected override ContextProtocol ContextProtocol
  19. {
  20. get { return this.contextProtocol; }
  21. }
  22. protected override bool IsClient
  23. {
  24. get { return true; }
  25. }
  26. }
  27. }