C# Class Mike.Spikes.MyService

Shows how you can block processing until a message arrives, or until a timeout fires
Inheritance: IDisposable
Afficher le fichier Open project: mikehadlow/Mike.Spikes Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

MyService() public méthode

public MyService ( IBus bus ) : System
bus IBus
Résultat System

OnDataAvailable() public méthode

public OnDataAvailable ( DataMessage data ) : void
data DataMessage
Résultat void

Process() public méthode

Do some processing
public Process ( ) : void
Résultat void

Start() public méthode

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