Class HandlerSwitcher
A delegator that forwards requests to another handler, which can be changed at any time.
Inheritance
System.Object
HandlerSwitcher
Namespace: LaunchDarkly.TestHelpers.HttpTest
Assembly: LaunchDarkly.TestHelpers.dll
Syntax
public class HandlerSwitcher : Object
Remarks
There is an implicit conversion allowing a HandlerSwitcher
to be used as a
Handler.
Properties
Handler
Returns the stable Handler that is the external entry point to this
delegator. This is used implicitly if you use a HandlerDelegator
anywhere that
a Handler is expected.
Declaration
public Handler Handler { get; }
Property Value
Type | Description |
---|---|
Handler |
Target
The handler that will actually handle the request.
Declaration
public Handler Target { get; set; }
Property Value
Type | Description |
---|---|
Handler |
Operators
Implicit(HandlerSwitcher to Handler)
Declaration
public static implicit operator Handler(HandlerSwitcher me)
Parameters
Type | Name | Description |
---|---|---|
HandlerSwitcher | me |
Returns
Type | Description |
---|---|
Handler |