Refresh;
Refresh();
The Refresh method refreshes all features in use: it removes all features from session and reloads them.
The method is used if it is required to reconnect or if a set of features is changed at the server or in the local license file.
To execute the example, add a link to the Ui system assembly.
Sub UserProc;
Var
LicManager: IUiLicenseManager;
Begin
LicManager := WinApplication.Instance.LicenseManager;
LicManager.Refresh;
End Sub UserProc;
After executing the example all features will be refreshed.
To execute the example, add links to the Ui, Fore, ForeSystem system assemblies. The specified procedure is an entry point for the .NET assembly. The example of the Fore.NET example execution matches with that in the Fore example.
Imports Prognoz.Platform.Interop.ForeSystem;
Imports Prognoz.Platform.Interop.Fore;
Imports Prognoz.Platform.Interop.Ui;
...
Public Shared Sub Main(Params: StartParams);
Var
WinApp: WinApplicationClassClass = New WinApplicationClassClass();
Svc: IForeServices;
RunContext: ForeRuntimeContext;
LicManager: IUiLicenseManager;
Begin
Svc := Params.Metabase As IForeServices;
RunContext := Svc.GetRuntime().Context;
LicManager := WinApp.Instance[RunContext].LicenseManager;
LicManager.Refresh();
End Sub;
See also: