Class HttpEffectBase
public abstract class HttpEffectBase : EffectBase, IEffect
- Inheritance
-
HttpEffectBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
HttpEffectBase(ILogger, HttpClient)
public HttpEffectBase(ILogger logger, HttpClient httpClient)
Parameters
logger
ILoggerhttpClient
HttpClient
Fields
HEADER_PARAMETER_PREFIX
public static readonly string HEADER_PARAMETER_PREFIX
Field Value
_logger
protected ILogger _logger
Field Value
Properties
RequiredParameters
Parameters required to be set
public override Parameter[] RequiredParameters { get; }
Property Value
Remarks
The context parameter to Runtime.Execute must define at least the keys listed here.
Methods
RequestMessage(HttpMethod, Dictionary<string, string>, string)
public Task<Result> RequestMessage(HttpMethod method, Dictionary<string, string> parameters, string feildPrefix)
Parameters
method
HttpMethodparameters
Dictionary<string, string>feildPrefix
string
Returns
Send(HttpRequestMessage, Dictionary<string, string>)
protected virtual Task<Result> Send(HttpRequestMessage request, Dictionary<string, string> parameters)
Parameters
request
HttpRequestMessageparameters
Dictionary<string, string>
Returns
SetAuthenticator(IHttpAuthenticator, Dictionary<string, string>)
public void SetAuthenticator(IHttpAuthenticator authenticator, Dictionary<string, string> secrets)
Parameters
authenticator
IHttpAuthenticatorsecrets
Dictionary<string, string>