IChannelFactory.cs 621 B

1234567891011121314151617181920
  1. //----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //----------------------------------------------------------------------------
  4. namespace System.ServiceModel.Channels
  5. {
  6. using System;
  7. using System.ServiceModel;
  8. public interface IChannelFactory : ICommunicationObject
  9. {
  10. T GetProperty<T>() where T : class;
  11. }
  12. public interface IChannelFactory<TChannel> : IChannelFactory
  13. {
  14. TChannel CreateChannel(EndpointAddress to);
  15. TChannel CreateChannel(EndpointAddress to, Uri via);
  16. }
  17. }