Compartir a través de


ResourceStrategy<TModel> Constructors

Definition

Overloads

ResourceStrategy<TModel>(ResourceType, Func<IClient,GetAsyncParams, Task<TModel>>, Func<IClient,CreateOrUpdateAsyncParams<TModel>, Task<TModel>>, Property<TModel,String>, Func<TModel,Int32>, Boolean)
ResourceStrategy<TModel>(ResourceType, Func<IClient,GetAsyncParams, Task<TModel>>, Func<IClient,CreateOrUpdateAsyncParams<TModel>, Task<TModel>>, Property<TModel,String>, Func<TModel,Int32>, Boolean, Func<TModel,Boolean>)

ResourceStrategy<TModel>(ResourceType, Func<IClient,GetAsyncParams, Task<TModel>>, Func<IClient,CreateOrUpdateAsyncParams<TModel>, Task<TModel>>, Property<TModel,String>, Func<TModel,Int32>, Boolean)

public ResourceStrategy (Microsoft.Azure.Commands.Common.Strategies.ResourceType type, Func<Microsoft.Azure.Commands.Common.Strategies.IClient,Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams,System.Threading.Tasks.Task<TModel>> getAsync, Func<Microsoft.Azure.Commands.Common.Strategies.IClient,Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<TModel>,System.Threading.Tasks.Task<TModel>> createOrUpdateAsync, Microsoft.Azure.Commands.Common.Strategies.Property<TModel,string> location, Func<TModel,int> createTime, bool compulsoryLocation);
new Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model> : Microsoft.Azure.Commands.Common.Strategies.ResourceType * Func<Microsoft.Azure.Commands.Common.Strategies.IClient, Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams, System.Threading.Tasks.Task<'Model>> * Func<Microsoft.Azure.Commands.Common.Strategies.IClient, Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<'Model>, System.Threading.Tasks.Task<'Model>> * Microsoft.Azure.Commands.Common.Strategies.Property<'Model, string> * Func<'Model, int> * bool -> Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model>
Public Sub New (type As ResourceType, getAsync As Func(Of IClient, GetAsyncParams, Task(Of TModel)), createOrUpdateAsync As Func(Of IClient, CreateOrUpdateAsyncParams(Of TModel), Task(Of TModel)), location As Property(Of TModel, String), createTime As Func(Of TModel, Integer), compulsoryLocation As Boolean)

Parameters

getAsync
Func<IClient,GetAsyncParams,Task<TModel>>
createOrUpdateAsync
Func<IClient,CreateOrUpdateAsyncParams<TModel>,Task<TModel>>
location
Property<TModel,String>
createTime
Func<TModel,Int32>
compulsoryLocation
Boolean

Applies to

ResourceStrategy<TModel>(ResourceType, Func<IClient,GetAsyncParams, Task<TModel>>, Func<IClient,CreateOrUpdateAsyncParams<TModel>, Task<TModel>>, Property<TModel,String>, Func<TModel,Int32>, Boolean, Func<TModel,Boolean>)

public ResourceStrategy (Microsoft.Azure.Commands.Common.Strategies.ResourceType type, Func<Microsoft.Azure.Commands.Common.Strategies.IClient,Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams,System.Threading.Tasks.Task<TModel>> getAsync, Func<Microsoft.Azure.Commands.Common.Strategies.IClient,Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<TModel>,System.Threading.Tasks.Task<TModel>> createOrUpdateAsync, Microsoft.Azure.Commands.Common.Strategies.Property<TModel,string> location, Func<TModel,int> createTime, bool compulsoryLocation, Func<TModel,bool> evaluatePreexistingConfiguration = default);
new Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model> : Microsoft.Azure.Commands.Common.Strategies.ResourceType * Func<Microsoft.Azure.Commands.Common.Strategies.IClient, Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams, System.Threading.Tasks.Task<'Model>> * Func<Microsoft.Azure.Commands.Common.Strategies.IClient, Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<'Model>, System.Threading.Tasks.Task<'Model>> * Microsoft.Azure.Commands.Common.Strategies.Property<'Model, string> * Func<'Model, int> * bool * Func<'Model, bool> -> Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model>
Public Sub New (type As ResourceType, getAsync As Func(Of IClient, GetAsyncParams, Task(Of TModel)), createOrUpdateAsync As Func(Of IClient, CreateOrUpdateAsyncParams(Of TModel), Task(Of TModel)), location As Property(Of TModel, String), createTime As Func(Of TModel, Integer), compulsoryLocation As Boolean, Optional evaluatePreexistingConfiguration As Func(Of TModel, Boolean) = Nothing)

Parameters

getAsync
Func<IClient,GetAsyncParams,Task<TModel>>
createOrUpdateAsync
Func<IClient,CreateOrUpdateAsyncParams<TModel>,Task<TModel>>
location
Property<TModel,String>
createTime
Func<TModel,Int32>
compulsoryLocation
Boolean
evaluatePreexistingConfiguration
Func<TModel,Boolean>

Applies to