Beispiel #1
0
        public Task InitAsync(PluginInitContext context)
        {
            Context             = context;
            Settings            = context.API.LoadSettingJsonStorage <Settings>();
            viewModel           = new SettingsViewModel(context, Settings);
            contextMenu         = new ContextMenu(Context);
            pluginManager       = new PluginsManager(Context, Settings);
            _manifestUpdateTask = pluginManager
                                  .UpdateManifestAsync(true)
                                  .ContinueWith(_ =>
            {
                lastUpdateTime = DateTime.Now;
            }, TaskContinuationOptions.OnlyOnRanToCompletion);

            return(Task.CompletedTask);
        }