Class ManagedNamedPipeClient
- Namespace
- DiscordRPC.IO
- Assembly
- DiscordRPC.dll
A named pipe client using the .NET framework NamedPipeClientStream
public sealed class ManagedNamedPipeClient : INamedPipeClient, IDisposable
- Inheritance
-
ManagedNamedPipeClient
- Implements
- Inherited Members
Constructors
ManagedNamedPipeClient()
Creates a new instance of a Managed NamedPipe client. Doesn't connect to anything yet, just setups the values.
public ManagedNamedPipeClient()
Properties
ConnectedPipe
The pipe we are currently connected too.
public int ConnectedPipe { get; }
Property Value
IsConnected
Checks if the client is connected
public bool IsConnected { get; }
Property Value
Logger
The logger for the Pipe client to use
public ILogger Logger { get; set; }
Property Value
Methods
Close()
Closes the pipe
public void Close()
Connect(int)
Connects to the pipe
public bool Connect(int pipe)
Parameters
pipe
int
Returns
Dispose()
Disposes of the stream
public void Dispose()
GetPipeName(int)
[Obsolete("Use PipePermutation.GetPipes instead", true)]
public static string GetPipeName(int pipe)
Parameters
pipe
int
Returns
GetPipeName(int, string)
[Obsolete("Use PipePermutation.GetPipes instead", true)]
public static string GetPipeName(int pipe, string sandbox)
Parameters
Returns
GetPipeSandbox()
[Obsolete("Use PipePermutation.GetPipes instead", true)]
public static string GetPipeSandbox()
Returns
IsUnix()
[Obsolete("Use PipePermutation.GetPipes instead", true)]
public static bool IsUnix()
Returns
ReadFrame(out PipeFrame)
Reads a frame, returning false if none are available
public bool ReadFrame(out PipeFrame frame)
Parameters
frame
PipeFrame
Returns
WriteFrame(PipeFrame)
Writes a frame to the pipe
public bool WriteFrame(PipeFrame frame)
Parameters
frame
PipeFrame