EndpointInfoCollection.cs 778 B

1234567891011121314151617181920212223
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Administration
  5. {
  6. using System;
  7. using System.ServiceModel.Description;
  8. using System.Collections.Generic;
  9. using System.Collections.ObjectModel;
  10. using System.Runtime.Serialization;
  11. internal sealed class EndpointInfoCollection : Collection<EndpointInfo>
  12. {
  13. internal EndpointInfoCollection(ServiceEndpointCollection endpoints, string serviceName)
  14. {
  15. for (int i = 0; i < endpoints.Count; ++i)
  16. {
  17. base.Add(new EndpointInfo(endpoints[i], serviceName));
  18. }
  19. }
  20. }
  21. }