Table of Contents

Class TokenReplace

Namespace
Oqtane.Infrastructure
Assembly
Oqtane.Server.dll
public class TokenReplace : ITokenReplace
Inheritance
object
TokenReplace
Implements

Constructors

TokenReplace(ILogManager)

public TokenReplace(ILogManager logger)

Parameters

logger ILogManager

Fields

GenericName

public const string GenericName = "generic"

Field Value

string

Methods

AddSource(ITokenSource)

public void AddSource(ITokenSource source)

Parameters

source ITokenSource

AddSource(IDictionary<string, object>)

public void AddSource(IDictionary<string, object> source)

Parameters

source IDictionary<string, object>

AddSource(Func<IDictionary<string, object>>)

public void AddSource(Func<IDictionary<string, object>> sourceFunc)

Parameters

sourceFunc Func<IDictionary<string, object>>

AddSource(string, ITokenSource)

public void AddSource(string name, ITokenSource source)

Parameters

name string
source ITokenSource

AddSource(string, IDictionary<string, object>)

public void AddSource(string name, IDictionary<string, object> source)

Parameters

name string
source IDictionary<string, object>

AddSource(string, Func<IDictionary<string, object>>)

public void AddSource(string name, Func<IDictionary<string, object>> sourceFunc)

Parameters

name string
sourceFunc Func<IDictionary<string, object>>

AddSource(string, object)

public void AddSource(string key, object value)

Parameters

key string
value object

AddSource(string, string, object)

public void AddSource(string name, string key, object value)

Parameters

name string
key string
value object

ReplaceTokens(string)

public string ReplaceTokens(string source)

Parameters

source string

Returns

string