-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3834 from zyhfish/task/token-replace-service
Fix #3833: introduce token replace class.
- Loading branch information
Showing
6 changed files
with
319 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Oqtane.Interfaces; | ||
|
||
namespace Oqtane.Infrastructure.Interfaces | ||
{ | ||
public interface ITokenReplace | ||
{ | ||
void AddSource(ITokenSource source); | ||
|
||
void AddSource(Func<IDictionary<string, object>> sourceFunc); | ||
|
||
void AddSource(IDictionary<string, object> source); | ||
|
||
void AddSource(string key, object value); | ||
|
||
void AddSource(string name, ITokenSource source); | ||
|
||
void AddSource(string name, Func<IDictionary<string, object>> sourceFunc); | ||
|
||
void AddSource(string name, IDictionary<string, object> source); | ||
|
||
void AddSource(string name, string key, object value); | ||
|
||
string ReplaceTokens(string source); | ||
} | ||
} |
Oops, something went wrong.