C# Class Simple.SimpleContext

Inheritance: ILogicalThreadAffinative
Show file Open project: juanplopes/simple Class Usage Examples

Public Methods

Method Description
Exists ( ) : bool
Force ( SimpleContext context ) : void
Get ( ) : SimpleContext
SwitchProvider ( IContextProvider newProvider ) : void
WithUsername ( string username ) : IDisposable

Private Methods

Method Description
SimpleContext ( ) : System

Method Details

Exists() public static method

public static Exists ( ) : bool
return bool

Force() public static method

public static Force ( SimpleContext context ) : void
context SimpleContext
return void

Get() public static method

public static Get ( ) : SimpleContext
return SimpleContext

SwitchProvider() public static method

public static SwitchProvider ( IContextProvider newProvider ) : void
newProvider IContextProvider
return void

WithUsername() public method

public WithUsername ( string username ) : IDisposable
username string
return IDisposable