C# Class Neovim.MsgPackIO

Mostrar archivo Open project: Pireax/neovim.cs Class Usage Examples

Public Methods

Method Description
MsgPackIO ( string filename, string args ) : System
Request ( int type, string method, object parameters, bool returnValue = true ) : MessagePackObject[]

This function makes a RPC call to the process and returns the reply

RequestAsync ( int type, string method, object parameters, bool returnValue = true ) : Task

Makes an async request

StartReadingOutput ( ) : void

Start reading asynchronously from the output and error streams

Protected Methods

Method Description
GetStartInfo ( string filename, string args ) : ProcessStartInfo
InitializeProcess ( string filename, string args ) : void
OnNotificationReceived ( MsgPackNotificationEventArgs e ) : void

Private Methods

Method Description
AttachStreams ( ) : void
ErrorCallback ( IAsyncResult ar ) : void

Callback for the error stream

OutputCallback ( IAsyncResult ar ) : void

Gets executed if BeginRead() has red some data

PrepareAsyncState ( ) : void
_process_Exited ( object sender, EventArgs e ) : void

Method Details

GetStartInfo() protected method

protected GetStartInfo ( string filename, string args ) : ProcessStartInfo
filename string
args string
return System.Diagnostics.ProcessStartInfo

InitializeProcess() protected method

protected InitializeProcess ( string filename, string args ) : void
filename string
args string
return void

MsgPackIO() public method

public MsgPackIO ( string filename, string args ) : System
filename string
args string
return System

OnNotificationReceived() protected method

protected OnNotificationReceived ( MsgPackNotificationEventArgs e ) : void
e MsgPackNotificationEventArgs
return void

Request() public method

This function makes a RPC call to the process and returns the reply
public Request ( int type, string method, object parameters, bool returnValue = true ) : MessagePackObject[]
type int Type of request
method string Method name
parameters object Method parameters
returnValue bool Does it return?
return MessagePackObject[]

RequestAsync() public method

Makes an async request
public RequestAsync ( int type, string method, object parameters, bool returnValue = true ) : Task
type int Type of request
method string Method name
parameters object Method parameters
returnValue bool Does it return?
return Task

StartReadingOutput() public method

Start reading asynchronously from the output and error streams
public StartReadingOutput ( ) : void
return void