StateOperationContext.GetOrAdd<TModel> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- config
- ResourceConfig<TModel>
Returns
Task<TModel>