ApplicationDependenciesCreateContext - метод
Создаёт контекст, связанный с приложением.
Пространство имён: Tessa.Platform.RuntimeСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public IApplicationContext CreateContext(
IApplication application,
IApplicationLaunchParameters parameters,
ApplicationCommandParseFunc parseCommandFunc = null,
ApplicationCommandExecuteFunc executeCommandFunc = null
)
Public Function CreateContext (
application As IApplication,
parameters As IApplicationLaunchParameters,
Optional parseCommandFunc As ApplicationCommandParseFunc = Nothing,
Optional executeCommandFunc As ApplicationCommandExecuteFunc = Nothing
) As IApplicationContext
public:
virtual IApplicationContext^ CreateContext(
IApplication^ application,
IApplicationLaunchParameters^ parameters,
ApplicationCommandParseFunc^ parseCommandFunc = nullptr,
ApplicationCommandExecuteFunc^ executeCommandFunc = nullptr
) sealed
abstract CreateContext :
application : IApplication *
parameters : IApplicationLaunchParameters *
?parseCommandFunc : ApplicationCommandParseFunc *
?executeCommandFunc : ApplicationCommandExecuteFunc
(* Defaults:
let _parseCommandFunc = defaultArg parseCommandFunc null
let _executeCommandFunc = defaultArg executeCommandFunc null
*)
-> IApplicationContext
override CreateContext :
application : IApplication *
parameters : IApplicationLaunchParameters *
?parseCommandFunc : ApplicationCommandParseFunc *
?executeCommandFunc : ApplicationCommandExecuteFunc
(* Defaults:
let _parseCommandFunc = defaultArg parseCommandFunc null
let _executeCommandFunc = defaultArg executeCommandFunc null
*)
-> IApplicationContext
- application IApplication
-
- parameters IApplicationLaunchParameters
-
Приложение, с которым связывается контекст. Не должно быть равно null.
- parseCommandFunc ApplicationCommandParseFunc (Optional)
-
Функция, выполняющая разбора нестандартного аргумента командной строки,
или null, если функция не задана.
- executeCommandFunc ApplicationCommandExecuteFunc (Optional)
-
Функция, выполняющая нестандартную команду, полученную из командной строки,
или null, если функция не задана.
IApplicationContextСозданный контекст.
IApplicationDependenciesCreateContext(IApplication, IApplicationLaunchParameters, ApplicationCommandParseFunc, ApplicationCommandExecuteFunc)