C# Class Beanstalk.Client.BeanstalkConnection

Inheritance: IBeanstalkConnection
Exibir arquivo Open project: jtdowney/beanstalk-sharp Class Usage Examples

Public Methods

Method Description
BeanstalkConnection ( IPAddress address, int port ) : System

Initializes a new instance of the BeanstalkConnection class.

BeanstalkConnection ( IPEndPoint endpoint ) : System

Initializes a new instance of the BeanstalkConnection class.

Close ( ) : void

Closes this instance.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Put ( byte data ) : IJob

Puts the specified data.

Put ( byte data, int priority, System.TimeSpan delay, System.TimeSpan timeToRun ) : IJob

Puts the specified data.

Put ( string data ) : IJob

Puts the specified data.

Put ( string data, int priority, System.TimeSpan delay, System.TimeSpan timeToRun ) : IJob

Puts the specified data.

Use ( string tube ) : void

Uses the specified tube.

Private Methods

Method Description
Connect ( ) : void

Connects this instance.

Method Details

BeanstalkConnection() public method

Initializes a new instance of the BeanstalkConnection class.
public BeanstalkConnection ( IPAddress address, int port ) : System
address System.Net.IPAddress The address.
port int The port.
return System

BeanstalkConnection() public method

Initializes a new instance of the BeanstalkConnection class.
public BeanstalkConnection ( IPEndPoint endpoint ) : System
endpoint System.Net.IPEndPoint The end point.
return System

Close() public method

Closes this instance.
public Close ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Put() public method

Puts the specified data.
public Put ( byte data ) : IJob
data byte The data.
return IJob

Put() public method

Puts the specified data.
public Put ( byte data, int priority, System.TimeSpan delay, System.TimeSpan timeToRun ) : IJob
data byte The data.
priority int The priority.
delay System.TimeSpan The delay.
timeToRun System.TimeSpan The time to run.
return IJob

Put() public method

Puts the specified data.
public Put ( string data ) : IJob
data string The data.
return IJob

Put() public method

Puts the specified data.
public Put ( string data, int priority, System.TimeSpan delay, System.TimeSpan timeToRun ) : IJob
data string The data.
priority int The priority.
delay System.TimeSpan The delay.
timeToRun System.TimeSpan The time to run.
return IJob

Use() public method

Uses the specified tube.
public Use ( string tube ) : void
tube string The tube.
return void