C# Class Mike.Spikes.MyService

Shows how you can block processing until a message arrives, or until a timeout fires
Inheritance: IDisposable
显示文件 Open project: mikehadlow/Mike.Spikes Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
MyService ( IBus bus ) : System
OnDataAvailable ( DataMessage data ) : void
Process ( ) : void

Do some processing

Start ( ) : void

Start fires when the service starts (you might also put this code in the constructor)

Method Details

Dispose() public method

public Dispose ( ) : void
return void

MyService() public method

public MyService ( IBus bus ) : System
bus IBus
return System

OnDataAvailable() public method

public OnDataAvailable ( DataMessage data ) : void
data DataMessage
return void

Process() public method

Do some processing
public Process ( ) : void
return void

Start() public method

Start fires when the service starts (you might also put this code in the constructor)
public Start ( ) : void
return void