ThemeStorageLoader(FuncCancellationToken, ValueTaskHashSetString, FuncCancellationToken, ValueTaskDictionaryString, Object, FuncCancellationToken, ValueTaskDictionaryString, DictionaryString, Object, String, String, String, String) - конструктор
Пространство имён: Tessa.ThemesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ThemeStorageLoader(
Func<CancellationToken, ValueTask<HashSet<string>>> getPathListFuncAsync,
Func<CancellationToken, ValueTask<Dictionary<string, Object>>> createThemeStorageFuncAsync,
Func<CancellationToken, ValueTask<Dictionary<string, Dictionary<string, Object>>>> createThemeCacheFuncAsync,
string folderPathList = null,
string fileSearchPattern = "*.json",
string propertiesSearchPattern = "props*.json",
string defaultThemeName = null
)
Public Sub New (
getPathListFuncAsync As Func(Of CancellationToken, ValueTask(Of HashSet(Of String))),
createThemeStorageFuncAsync As Func(Of CancellationToken, ValueTask(Of Dictionary(Of String, Object))),
createThemeCacheFuncAsync As Func(Of CancellationToken, ValueTask(Of Dictionary(Of String, Dictionary(Of String, Object)))),
Optional folderPathList As String = Nothing,
Optional fileSearchPattern As String = "*.json",
Optional propertiesSearchPattern As String = "props*.json",
Optional defaultThemeName As String = Nothing
)
public:
ThemeStorageLoader(
Func<CancellationToken, ValueTask<HashSet<String^>^>>^ getPathListFuncAsync,
Func<CancellationToken, ValueTask<Dictionary<String^, Object^>^>>^ createThemeStorageFuncAsync,
Func<CancellationToken, ValueTask<Dictionary<String^, Dictionary<String^, Object^>^>^>>^ createThemeCacheFuncAsync,
String^ folderPathList = nullptr,
String^ fileSearchPattern = L"*.json",
String^ propertiesSearchPattern = L"props*.json",
String^ defaultThemeName = nullptr
)
new :
getPathListFuncAsync : Func<CancellationToken, ValueTask<HashSet<string>>> *
createThemeStorageFuncAsync : Func<CancellationToken, ValueTask<Dictionary<string, Object>>> *
createThemeCacheFuncAsync : Func<CancellationToken, ValueTask<Dictionary<string, Dictionary<string, Object>>>> *
?folderPathList : string *
?fileSearchPattern : string *
?propertiesSearchPattern : string *
?defaultThemeName : string
(* Defaults:
let _folderPathList = defaultArg folderPathList null
let _fileSearchPattern = defaultArg fileSearchPattern "*.json"
let _propertiesSearchPattern = defaultArg propertiesSearchPattern "props*.json"
let _defaultThemeName = defaultArg defaultThemeName null
*)
-> ThemeStorageLoader
Параметры
- getPathListFuncAsync FuncCancellationToken, ValueTaskHashSetString
-
- createThemeStorageFuncAsync FuncCancellationToken, ValueTaskDictionaryString, Object
-
- createThemeCacheFuncAsync FuncCancellationToken, ValueTaskDictionaryString, DictionaryString, Object
-
- folderPathList String (Optional)
-
- fileSearchPattern String (Optional)
-
- propertiesSearchPattern String (Optional)
-
- defaultThemeName String (Optional)
-