Table of Contents

Class ActionCallBuilderBase<TResp>

Namespace
Phoesion.Glow.SDK.Client
Assembly
Phoesion.Glow.SDK.Client.dll
public abstract class ActionCallBuilderBase<TResp> : IActionCallBuilderBase<TResp>

Type Parameters

TResp
Inheritance
object
ActionCallBuilderBase<TResp>
Implements
Derived

Constructors

ActionCallBuilderBase(OperationId, MethodInfo, string[]?, Type[]?, object[]?)

protected ActionCallBuilderBase(OperationId OperationID, MethodInfo Action, string[]? ArgumentNames, Type[]? ArgumentTypes, object[]? ArgumentValues)

Parameters

OperationID OperationId
Action MethodInfo
ArgumentNames string[]
ArgumentTypes Type[]
ArgumentValues object[]

Fields

Action

public readonly MethodInfo? Action

Field Value

MethodInfo

ArgumentNames

public readonly string[]? ArgumentNames

Field Value

string[]

ArgumentTypes

public readonly Type[]? ArgumentTypes

Field Value

Type[]

ArgumentValues

public readonly object[]? ArgumentValues

Field Value

object[]

_CancellationToken

protected CancellationToken _CancellationToken

Field Value

CancellationToken

_JsonConfigure

protected Action<JsonSerializerOptions> _JsonConfigure

Field Value

Action<JsonSerializerOptions>

_OperationId

protected OperationId _OperationId

Field Value

OperationId

_ResponseCacheTimeout

protected TimeSpan? _ResponseCacheTimeout

Field Value

TimeSpan?

_ServiceTags

protected Dictionary<string, string>? _ServiceTags

Field Value

Dictionary<string, string>

_ThrowExceptions

protected bool _ThrowExceptions

Field Value

bool

_Timeout

protected TimeSpan? _Timeout

Field Value

TimeSpan?

retType

protected Type? retType

Field Value

Type

Methods

ConfigureJson(Action<JsonSerializerOptions>)

public ActionCallBuilderBase<TResp?> ConfigureJson(Action<JsonSerializerOptions> configure)

Parameters

configure Action<JsonSerializerOptions>

Returns

ActionCallBuilderBase<TResp>

GetAwaiter()

public TaskAwaiter<TResp?> GetAwaiter()

Returns

TaskAwaiter<TResp>

IgnoreRemoteExceptions()

public ActionCallBuilderBase<TResp?> IgnoreRemoteExceptions()

Returns

ActionCallBuilderBase<TResp>

InvokeAsync()

public Task<TResp?> InvokeAsync()

Returns

Task<TResp>

InvokeAsync(CancellationToken)

public Task<TResp?> InvokeAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<TResp>

InvokeAsync<TUserResp>()

public Task<TUserResp?> InvokeAsync<TUserResp>() where TUserResp : TResp

Returns

Task<TUserResp>

Type Parameters

TUserResp

InvokeAsync<TUserResp>(CancellationToken)

public Task<TUserResp?> InvokeAsync<TUserResp>(CancellationToken cancellationToken) where TUserResp : TResp

Parameters

cancellationToken CancellationToken

Returns

Task<TUserResp>

Type Parameters

TUserResp

RemoveLast(string, int)

protected static string RemoveLast(string value, int count)

Parameters

value string
count int

Returns

string

RemoveLast(string, string, bool)

protected static string RemoveLast(string value, string toRemove, bool CaseSensitive = true)

Parameters

value string
toRemove string
CaseSensitive bool

Returns

string

ThrowRemoteExceptions()

public ActionCallBuilderBase<TResp?> ThrowRemoteExceptions()

Returns

ActionCallBuilderBase<TResp>

ThrowRemoteExceptions(bool)

public ActionCallBuilderBase<TResp?> ThrowRemoteExceptions(bool throwExceptions)

Parameters

throwExceptions bool

Returns

ActionCallBuilderBase<TResp>

WithCancellationToken(CancellationToken)

public ActionCallBuilderBase<TResp?> WithCancellationToken(CancellationToken token)

Parameters

token CancellationToken

Returns

ActionCallBuilderBase<TResp>

WithOperationId(OperationId)

public ActionCallBuilderBase<TResp?> WithOperationId(OperationId operationId)

Parameters

operationId OperationId

Returns

ActionCallBuilderBase<TResp>

WithResponseCacheTimeout(TimeSpan?)

public ActionCallBuilderBase<TResp?> WithResponseCacheTimeout(TimeSpan? timeout)

Parameters

timeout TimeSpan?

Returns

ActionCallBuilderBase<TResp>

WithServiceTag<TServiceTag>(string)

public ActionCallBuilderBase<TResp?> WithServiceTag<TServiceTag>(string value) where TServiceTag : ServiceTagAttribute

Parameters

value string

Returns

ActionCallBuilderBase<TResp>

Type Parameters

TServiceTag

WithTimeout(TimeSpan?)

public ActionCallBuilderBase<TResp?> WithTimeout(TimeSpan? timeout)

Parameters

timeout TimeSpan?

Returns

ActionCallBuilderBase<TResp>

_InvokeAsync<T>()

protected abstract Task<T?> _InvokeAsync<T>() where T : TResp

Returns

Task<T>

Type Parameters

T