C# Class Elders.Hystrix.NET.HystrixCommandKey

An immutable key to represent a HystrixCommand for monitoring, circuit-breakers, metrics publishing, caching and other such uses. Command keys are equal if their names are equal with ordinal string comparison.
Inheritance: HystrixKey
Show file Open project: Elders/Hystrix.NET Class Usage Examples

Public Methods

Method Description
HystrixCommandKey ( Type commandType ) : System

Initializes a new instance of the HystrixCommandKey class based on the type of the command. This used to create default command keys for unnamed commands.

HystrixCommandKey ( string name ) : System

Initializes a new instance of the HystrixCommandKey class.

Private Methods

Method Description
GetDefaultNameForCommandType ( Type commandType ) : string

Gets the default name for a command type.

Method Details

HystrixCommandKey() public method

Initializes a new instance of the HystrixCommandKey class based on the type of the command. This used to create default command keys for unnamed commands.
public HystrixCommandKey ( Type commandType ) : System
commandType System.Type The type of the command.
return System

HystrixCommandKey() public method

Initializes a new instance of the HystrixCommandKey class.
public HystrixCommandKey ( string name ) : System
name string The name of the command key.
return System