C# Class CrossThreadRunner, NotifyPropertyWeaver

Exibir arquivo Open project: shiftkey/NotifyPropertyWeaver Class Usage Examples

Public Methods

Method Description
RunInMTA ( Action function ) : void
RunInSTA ( Action function ) : void
RunInSta ( Action userDelegate ) : void

Private Methods

Method Description
ExceptionWasThrown ( ) : bool
MultiThreadedWorker ( ThreadStart, userDelegate ) : void
Run ( ThreadStart, userDelegate, ApartmentState, apartmentState ) : void
RunInMTA ( ThreadStart, userDelegate ) : void
RunInSTA ( ThreadStart, userDelegate ) : void
ThrowExceptionPreservingStack ( Exception exception ) : void

Method Details

RunInMTA() public method

public RunInMTA ( Action function ) : void
function Action
return void

RunInSTA() public method

public RunInSTA ( Action function ) : void
function Action
return void

RunInSta() public method

public RunInSta ( Action userDelegate ) : void
userDelegate Action
return void