C# Class Thinktecture.ServiceModel.CommunicationObjectHelper

Contains the helper methods for managing the CommunicationObject's life time.
Datei anzeigen Open project: ChristianWeyer/Thinktecture.ServiceModel

Public Methods

Method Description
EnsureCleanup ( object channel, System.Action action ) : void

Invokes the specified delegate and cleans up the specified channel.

RetryCall ( System.Action action ) : void

Invokes the specified delegate and retries the service operation call.

RetryCall ( int retries, System.Action action ) : void

Invokes the specified delegate and retries the service operation call.

RetryCall ( int retries, int timeToWait, System.Action action ) : void

Invokes the specified delegate and retries the service operation call.

Private Methods

Method Description
TryCloseCommunicationObject ( ICommunicationObject commObj ) : void

Tries to gracefully close communication object.

Method Details

EnsureCleanup() public static method

Invokes the specified delegate and cleans up the specified channel.
public static EnsureCleanup ( object channel, System.Action action ) : void
channel object
action System.Action
return void

RetryCall() public static method

Invokes the specified delegate and retries the service operation call.
public static RetryCall ( System.Action action ) : void
action System.Action The action.
return void

RetryCall() public static method

Invokes the specified delegate and retries the service operation call.
public static RetryCall ( int retries, System.Action action ) : void
retries int The retries.
action System.Action The action.
return void

RetryCall() public static method

Invokes the specified delegate and retries the service operation call.
public static RetryCall ( int retries, int timeToWait, System.Action action ) : void
retries int The retries.
timeToWait int The time to wait.
action System.Action The action.
return void