Partager via


StateOperationContext.GetOrAdd<TModel> Method

Definition

public System.Threading.Tasks.Task<TModel> GetOrAdd<TModel> (Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<TModel> config, Func<System.Threading.Tasks.Task<TModel>> operation) where TModel : class;
member this.GetOrAdd : Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<'Model (requires 'Model : null)> * Func<System.Threading.Tasks.Task<'Model>> -> System.Threading.Tasks.Task<'Model (requires 'Model : null)> (requires 'Model : null)
Public Function GetOrAdd(Of TModel As Class) (config As ResourceConfig(Of TModel), operation As Func(Of Task(Of TModel))) As Task(Of TModel)

Type Parameters

TModel

Parameters

operation
Func<Task<TModel>>

Returns

Task<TModel>

Applies to