Exemple #1
0
 private void ExecuteNodeViewPrivate(LoadedNodeSet loaderContextDefinition, IProcessingContext processingContext, View view)
 {
     if (view != null)
     {
         ISystemPlugin systemPlugin = Utilities.GetPlugin <ISystemPlugin>(view.SystemPluginName, _TransactionScope.DependencyInjectionContainer, _KraftModuleConfigurationSettings, ELoaderType.ViewLoader);
         GenericUtilities.CheckNullOrEmpty(systemPlugin, true);
         IPluginsSynchronizeContextScoped synchronizeContextScoped = _TransactionScope.GetSynchronizeContextScopedAsync(view.SystemPluginName, ELoaderType.ViewLoader, _KraftModuleConfigurationSettings, systemPlugin).Result;
         GenericUtilities.CheckNullOrEmpty(synchronizeContextScoped, true);
         systemPlugin.ExecuteAsync(loaderContextDefinition, processingContext, _TransactionScope.PluginServiceManager, synchronizeContextScoped, view);
     }
 }
Exemple #2
0
 public async Task <IPluginsSynchronizeContextScoped> GetPluginsSynchronizeContextScoped(string contextKey, T plugin)
 {
     return(await _TransactionScope.GetSynchronizeContextScopedAsync(contextKey, GetLoaderType(), _KraftModuleConfigurationSettings, plugin));
 }