HttpCookieContainerManager.cs 903 B

1234567891011121314151617181920212223242526272829303132333435
  1. // <copyright>
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. // </copyright>
  4. namespace System.ServiceModel.Channels
  5. {
  6. using System.Security;
  7. using System.Security.Permissions;
  8. using Net;
  9. /// <summary>
  10. /// Implementation of the IHttpCookieContainerManager
  11. /// </summary>
  12. class HttpCookieContainerManager : IHttpCookieContainerManager
  13. {
  14. private CookieContainer cookieContainer;
  15. // We need this flag to avoid overriding the CookieConatiner if the user has already initialized it.
  16. public bool IsInitialized { get; private set; }
  17. public CookieContainer CookieContainer
  18. {
  19. get
  20. {
  21. return this.cookieContainer;
  22. }
  23. set
  24. {
  25. this.IsInitialized = true;
  26. this.cookieContainer = value;
  27. }
  28. }
  29. }
  30. }