Class OperationInput
This class represents an operation bound with a request, or an operation whose request can be derived from another operation call.
public class OperationInput
- Inheritance
-
OperationInput
- Inherited Members
- Extension Methods
Constructors
OperationInput(string, IOperation)
Constructs an instance of this class given a name and an operation. The request is set to an instance of the Unit object to denote the fact that this operation does not take any request.
public OperationInput(string name, IOperation operation)
Parameters
namestringoperationIOperation
OperationInput(string, IOperation, IList<OperationCall>, string)
Constructs an instance of this class given a name, an operation and the operation call that this request is derived from.
public OperationInput(string name, IOperation operation, IList<OperationCall> derivedFromOperationCalls, string derivationVariant = "Default")
Parameters
namestringoperationIOperationderivedFromOperationCallsIList<OperationCall>derivationVariantstring
OperationInput(string, IOperation, object)
Constructs an instance of this class given a name, an operation and request.
public OperationInput(string name, IOperation operation, object request)
Parameters
namestringoperationIOperationrequestobject
OperationInput(string, IOperation, object, IList<OperationCall>, string)
Constructs an instance of this class given a name, an operation, a template request and the operation calls this request is derived from.
public OperationInput(string name, IOperation operation, object request, IList<OperationCall> derivedFromOperationCalls, string derivationVariant = "Default")
Parameters
namestringoperationIOperationrequestobjectderivedFromOperationCallsIList<OperationCall>derivationVariantstring
Properties
DerivationVariant
The variant label if this operation's request is derived from other operations. The label is used to identify which variant was generated (e.g., "IfMatch" vs "IfNoneMatch").
public string DerivationVariant { get; set; }
Property Value
DerivedFromOperationCalls
The operation calls whose request/response this operation's request is derived from.
public IList<OperationCall> DerivedFromOperationCalls { get; set; }
Property Value
Name
The name of the operation.
public string Name { get; set; }
Property Value
Operation
The operation associated with this input.
public IOperation Operation { get; set; }
Property Value
Polling
The polling setup for this input. If set, overrides the operation's Polling property.
public PollingSetup Polling { get; set; }
Property Value
Request
The request to use when invoking the operation.
If DerivedFromOperationCalls is set, then this value is passed to the derivation lambda as a template that it can use as a base value to build on top of.
public object Request { get; set; }
Property Value
SkipPolling
If true, polling is skipped for this input even if the operation has polling configured.
public bool SkipPolling { get; set; }
Property Value
Methods
Clone()
Performs a selective deep clone of this object.
public OperationInput Clone()
Returns
ConstructDerivedOperationName(string, string, string)
public static string ConstructDerivedOperationName(string sourceOperationCallName, string derivedOperationName, string derivationVariant)
Parameters
Returns
WithPolling(PollingSetup)
Sets the polling setup for this input and returns the input for fluent chaining. This overrides the operation's default polling setup.
public OperationInput WithPolling(PollingSetup polling)
Parameters
pollingPollingSetupThe polling setup to use for this input.
Returns
- OperationInput
This input for fluent chaining.
WithoutPolling()
Disables polling for this input, even if the operation has polling configured.
public OperationInput WithoutPolling()
Returns
- OperationInput
This input for fluent chaining.