Dela via


ResourceConfigExtensions.CreateResourceConfig Method

Definition

Overloads

CreateResourceConfig<TModel>(ResourceStrategy<TModel>, IResourceConfig, String, Func<IEngine,TModel>)
CreateResourceConfig<TModel>(ResourceStrategy<TModel>, IResourceConfig, String, Func<IEngine,TModel>, IEnumerable<IEntityConfig>)

CreateResourceConfig<TModel>(ResourceStrategy<TModel>, IResourceConfig, String, Func<IEngine,TModel>)

public static Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<TModel> CreateResourceConfig<TModel> (this Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<TModel> strategy, Microsoft.Azure.Commands.Common.Strategies.IResourceConfig resourceGroup, string name, Func<Microsoft.Azure.Commands.Common.Strategies.IEngine,TModel> createModel = default) where TModel : class, new();
static member CreateResourceConfig : Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model (requires 'Model : null and 'Model : (new : unit -> 'Model))> * Microsoft.Azure.Commands.Common.Strategies.IResourceConfig * string * Func<Microsoft.Azure.Commands.Common.Strategies.IEngine, 'Model (requires 'Model : null and 'Model : (new : unit -> 'Model))> -> Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<'Model (requires 'Model : null and 'Model : (new : unit -> 'Model))> (requires 'Model : null and 'Model : (new : unit -> 'Model))
<Extension()>
Public Function CreateResourceConfig(Of TModel As {Class, New}) (strategy As ResourceStrategy(Of TModel), resourceGroup As IResourceConfig, name As String, Optional createModel As Func(Of IEngine, TModel) = Nothing) As ResourceConfig(Of TModel)

Type Parameters

TModel

Parameters

resourceGroup
IResourceConfig
name
String
createModel
Func<IEngine,TModel>

Returns

Applies to

CreateResourceConfig<TModel>(ResourceStrategy<TModel>, IResourceConfig, String, Func<IEngine,TModel>, IEnumerable<IEntityConfig>)

public static Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<TModel> CreateResourceConfig<TModel> (this Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<TModel> strategy, Microsoft.Azure.Commands.Common.Strategies.IResourceConfig resourceGroup, string name, Func<Microsoft.Azure.Commands.Common.Strategies.IEngine,TModel> createModel, System.Collections.Generic.IEnumerable<Microsoft.Azure.Commands.Common.Strategies.IEntityConfig> dependencies) where TModel : class;
static member CreateResourceConfig : Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model (requires 'Model : null)> * Microsoft.Azure.Commands.Common.Strategies.IResourceConfig * string * Func<Microsoft.Azure.Commands.Common.Strategies.IEngine, 'Model (requires 'Model : null)> * seq<Microsoft.Azure.Commands.Common.Strategies.IEntityConfig> -> Microsoft.Azure.Commands.Common.Strategies.ResourceConfig<'Model (requires 'Model : null)> (requires 'Model : null)
<Extension()>
Public Function CreateResourceConfig(Of TModel As Class) (strategy As ResourceStrategy(Of TModel), resourceGroup As IResourceConfig, name As String, createModel As Func(Of IEngine, TModel), dependencies As IEnumerable(Of IEntityConfig)) As ResourceConfig(Of TModel)

Type Parameters

TModel

Parameters

resourceGroup
IResourceConfig
name
String
createModel
Func<IEngine,TModel>
dependencies
IEnumerable<IEntityConfig>

Returns

Applies to