AnonymousPipeServerStream.NotSupported.cs 880 B

12345678910111213141516171819202122232425262728
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using Microsoft.Win32.SafeHandles;
  5. using System.Diagnostics;
  6. using System.Security;
  7. namespace System.IO.Pipes
  8. {
  9. /// <summary>
  10. /// Anonymous pipe server stream
  11. /// </summary>
  12. public sealed partial class AnonymousPipeServerStream : PipeStream
  13. {
  14. public AnonymousPipeServerStream (PipeDirection direction, HandleInheritability inheritability, int bufferSize, PipeSecurity pipeSecurity)
  15. : base (PipeDirection.In, 0)
  16. {
  17. throw new PlatformNotSupportedException();
  18. }
  19. // Creates the anonymous pipe.
  20. private unsafe void Create (PipeDirection direction, HandleInheritability inheritability, int bufferSize)
  21. {
  22. throw new PlatformNotSupportedException();
  23. }
  24. }
  25. }