Merge pull request #3766 from BrzVlad/feature-default-conc
[mono.git] / mcs / class / System.Core / System.IO.Pipes / PipeInterfaces.cs
1 using Microsoft.Win32.SafeHandles;
2
3 namespace System.IO.Pipes
4 {
5         // Common interfaces
6
7         interface IPipe
8         {
9                 SafePipeHandle Handle { get; }
10                 void WaitForPipeDrain ();
11         }
12
13         interface IAnonymousPipeClient : IPipe
14         {
15         }
16
17         interface IAnonymousPipeServer : IPipe
18         {
19                 SafePipeHandle ClientHandle { get; }
20                 void DisposeLocalCopyOfClientHandle ();
21         }
22
23         interface INamedPipeClient : IPipe
24         {
25                 void Connect ();
26                 void Connect (int timeout);
27                 int NumberOfServerInstances { get; }
28                 bool IsAsync { get; }
29         }
30
31         interface INamedPipeServer : IPipe
32         {
33                 void Disconnect ();
34                 void WaitForConnection ();
35         }
36 }