C# Class DD.CBU.CaasDeploy.Library.Macro

Provides commonly used helper methods to replace tokens in JSON templates.
Mostrar archivo Open project: DimensionDataCBUSydney/CaaSDeploy

Public Methods

Method Description
SubstituteTokensInJObject ( DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext runtimeContext, DD.CBU.CaasDeploy.Library.Contracts.TaskContext taskContext, Newtonsoft.Json.Linq.JObject resourceDefinition ) : System.Threading.Tasks.Task

Substitutes the tokens in supplied JSON object.

SubstituteTokensInString ( DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext runtimeContext, DD.CBU.CaasDeploy.Library.Contracts.TaskContext taskContext, string input ) : Task

Substitutes the property tokens in the supplied string.

Method Details

SubstituteTokensInJObject() public static method

Substitutes the tokens in supplied JSON object.
public static SubstituteTokensInJObject ( DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext runtimeContext, DD.CBU.CaasDeploy.Library.Contracts.TaskContext taskContext, Newtonsoft.Json.Linq.JObject resourceDefinition ) : System.Threading.Tasks.Task
runtimeContext DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext The runtime context.
taskContext DD.CBU.CaasDeploy.Library.Contracts.TaskContext The task execution context.
resourceDefinition Newtonsoft.Json.Linq.JObject The resource definition.
return System.Threading.Tasks.Task

SubstituteTokensInString() public static method

Substitutes the property tokens in the supplied string.
public static SubstituteTokensInString ( DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext runtimeContext, DD.CBU.CaasDeploy.Library.Contracts.TaskContext taskContext, string input ) : Task
runtimeContext DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext The runtime context.
taskContext DD.CBU.CaasDeploy.Library.Contracts.TaskContext The task execution context.
input string The input string.
return Task