C# Class tik4net.Api.ApiConnection

Inheritance: ITikConnection
Mostra file Open project: danikf/tik4net Class Usage Examples

Public Methods

Method Description
ApiConnection ( bool isSsl ) : System
CallCommandAsync ( IEnumerable commandRows, string tag, Action oneResponseCallback ) : Thread
CallCommandSync ( ) : IEnumerable
CallCommandSync ( IEnumerable commandRows ) : IEnumerable
Close ( ) : void
CreateCommand ( ) : ITikCommand
CreateCommand ( TikCommandParameterFormat defaultParameterFormat ) : ITikCommand
CreateCommand ( string commandText ) : ITikCommand
CreateCommand ( string commandText, TikCommandParameterFormat defaultParameterFormat ) : ITikCommand
CreateCommandAndParameters ( string commandText ) : ITikCommand
CreateCommandAndParameters ( string commandText, TikCommandParameterFormat defaultParameterFormat ) : ITikCommand
CreateParameter ( string name, string value ) : ITikCommandParameter
CreateParameter ( string name, string value, TikCommandParameterFormat parameterFormat ) : ITikCommandParameter
Dispose ( ) : void
Open ( string host, int port, string user, string password ) : void
Open ( string host, string user, string password ) : void

Private Methods

Method Description
EnsureOpened ( ) : void
GetAll ( string tag ) : IEnumerable
GetOne ( string tag ) : ITikSentence
Login ( string user, string password ) : void
ReadSentence ( ) : ITikSentence
ReadWord ( bool skipEmptyRow ) : string
ReadWordLength ( ) : long
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
WriteCommand ( IEnumerable commandRows ) : void

Method Details

ApiConnection() public method

public ApiConnection ( bool isSsl ) : System
isSsl bool
return System

CallCommandAsync() public method

public CallCommandAsync ( IEnumerable commandRows, string tag, Action oneResponseCallback ) : Thread
commandRows IEnumerable
tag string
oneResponseCallback Action
return Thread

CallCommandSync() public method

public CallCommandSync ( ) : IEnumerable
return IEnumerable

CallCommandSync() public method

public CallCommandSync ( IEnumerable commandRows ) : IEnumerable
commandRows IEnumerable
return IEnumerable

Close() public method

public Close ( ) : void
return void

CreateCommand() public method

public CreateCommand ( ) : ITikCommand
return ITikCommand

CreateCommand() public method

public CreateCommand ( TikCommandParameterFormat defaultParameterFormat ) : ITikCommand
defaultParameterFormat TikCommandParameterFormat
return ITikCommand

CreateCommand() public method

public CreateCommand ( string commandText ) : ITikCommand
commandText string
return ITikCommand

CreateCommand() public method

public CreateCommand ( string commandText, TikCommandParameterFormat defaultParameterFormat ) : ITikCommand
commandText string
defaultParameterFormat TikCommandParameterFormat
return ITikCommand

CreateCommandAndParameters() public method

public CreateCommandAndParameters ( string commandText ) : ITikCommand
commandText string
return ITikCommand

CreateCommandAndParameters() public method

public CreateCommandAndParameters ( string commandText, TikCommandParameterFormat defaultParameterFormat ) : ITikCommand
commandText string
defaultParameterFormat TikCommandParameterFormat
return ITikCommand

CreateParameter() public method

public CreateParameter ( string name, string value ) : ITikCommandParameter
name string
value string
return ITikCommandParameter

CreateParameter() public method

public CreateParameter ( string name, string value, TikCommandParameterFormat parameterFormat ) : ITikCommandParameter
name string
value string
parameterFormat TikCommandParameterFormat
return ITikCommandParameter

Dispose() public method

public Dispose ( ) : void
return void

Open() public method

public Open ( string host, int port, string user, string password ) : void
host string
port int
user string
password string
return void

Open() public method

public Open ( string host, string user, string password ) : void
host string
user string
password string
return void