public TopLevelProgramCommand(
     ExtensionDeps deps,
     IExtensionInvocationService invocationService,
     IExtensionsCacheService extensionsCacheService
     ) : base(deps, invocationService, extensionsCacheService, guidQuokkaExtensionVS2019PackageIds.guidQuokkaExtensionVS2019PackageCmdSet, guidQuokkaExtensionVS2019PackageIds.cmdidMyDynamicStart_Program, TopLevelIcon.Program)
 {
 }
        public CancelRunMethodCommand(ExtensionDeps deps, IExtensionInvocationService invocationService)
            : base(deps, guidQuokkaExtensionVS2019PackageIds.cmdidCancelRunMethodCommand)
        {
            _invocationService = invocationService;

            _invocationService.InvocationEvent += OnInvocationEvent;
        }
 public ExtensionMethodInvocationCommandViewModel(
     ExtensionDeps deps,
     IExtensionInvocationService invocationService,
     ExtensionMethodInfo invokeParams) : base(deps)
 {
     _invocationService = invocationService;
     _invokeParams      = invokeParams;
 }
예제 #4
0
 public DynamicIconsCommandFactory(
     ExtensionDeps deps,
     IExtensionInvocationService invocationService,
     IExtensionsCacheService extensionsCacheService
     ) : base(deps)
 {
     _invocationService      = invocationService;
     _extensionsCacheService = extensionsCacheService;
 }
        public RerunExtensionMethodCommand(
            ExtensionDeps deps,
            IExtensionInvocationService invocationService,
            IInvocationCacheService invocationCacheService)
            : base(deps, guidQuokkaExtensionVS2019PackageIds.cmdidRerunExtensionMethodCommand)
        {
            _invocationService      = invocationService;
            _invocationCacheService = invocationCacheService;

            _invocationService.InvocationEvent += OnInvocationEvent;
            _ens.OnExtensionsReloaded          += OnInvocationEvent;
        }
 public DynamicItemMenuCommand(
     IExtensionsCacheService ecs,
     IExtensionInvocationService invocationService,
     CommandID rootId,
     int cmdidMyDynamicStartCommand,
     List <ExtensionMethodInfo> matchingMethods)
     : base(OnInvokedDynamicItem, null /*changeHandler*/, OnBeforeQueryStatusDynamicItem, rootId)
 {
     _ecs = ecs;
     _invocationService          = invocationService;
     _commandId                  = rootId;
     _cmdidMyDynamicStartCommand = cmdidMyDynamicStartCommand;
     _matchingMethods            = matchingMethods;
 }
예제 #7
0
        public DynamicItemMenuCommandFactory(
            ExtensionDeps deps,
            IExtensionInvocationService invocationService,
            IExtensionsCacheService extensionsCacheService,
            Guid commandsSetId,
            int cmdidMyDynamicStartCommand,
            ExtensionMethodIcon icon
            ) : base(deps)
        {
            _invocationService          = invocationService;
            _extensionsCacheService     = extensionsCacheService;
            _commandsSetId              = commandsSetId;
            _cmdidMyDynamicStartCommand = cmdidMyDynamicStartCommand;
            _icon = icon;

            _ens.OnExtensionsReloaded += (s, a) =>
            {
                Reload();
            };
        }
 public ExploreCommand(ExtensionDeps deps, IExtensionInvocationService invocationService)
     : base(deps, guidQuokkaExtensionVS2019PackageIds.cmdidExploreCommand)
 {
     _invocationService = invocationService;
     _invocationService.InvocationEvent += OnInvocationEvent;
 }