C# Class Microsoft.Silverlight.Testing.Service.ProviderBase

The base class for test service providers.
Show file Open project: garyjohnson/wpnest

Public Methods

Method Description
Initialize ( ) : void

Initializes the provider.

InvokeMethod ( string methodName ) : void

Invokes a method on this provider using reflection.

Protected Methods

Method Description
Callback ( Action action, ServiceResult result ) : void

Performs a callback. Null action and/or result are permitted.

DecrementBusyServiceCounter ( ) : void

Decrements the busy service counter.

IncrementBusyServiceCounter ( ) : void

Increments the busy service counter.

OnInitializeCompleted ( ) : void

Call the InitializeCompleted event.

ProviderBase ( TestServiceProvider provider, string displayName ) : System

Initializes a new base provider class.

Method Details

Callback() protected static method

Performs a callback. Null action and/or result are permitted.
protected static Callback ( Action action, ServiceResult result ) : void
action Action The optional callback action.
result ServiceResult The result to pass back.
return void

DecrementBusyServiceCounter() protected method

Decrements the busy service counter.
protected DecrementBusyServiceCounter ( ) : void
return void

IncrementBusyServiceCounter() protected method

Increments the busy service counter.
protected IncrementBusyServiceCounter ( ) : void
return void

Initialize() public method

Initializes the provider.
public Initialize ( ) : void
return void

InvokeMethod() public method

Invokes a method on this provider using reflection.
public InvokeMethod ( string methodName ) : void
methodName string The name of the method.
return void

OnInitializeCompleted() protected method

Call the InitializeCompleted event.
protected OnInitializeCompleted ( ) : void
return void

ProviderBase() protected method

Initializes a new base provider class.
protected ProviderBase ( TestServiceProvider provider, string displayName ) : System
provider TestServiceProvider The owning test service provider.
displayName string The display name of the service.
return System