/// <summary> /// Initializes a new instance of the <see cref="ExampleCommandProvider"/> class. /// </summary> /// <param name="commandsContext">The context that commands run in, which is an expression of what is selected in the Intelligence Portal.</param> /// <param name="commandContextState">The context state, which indicates whether the actions toolbar or a context menu is being processed.</param> /// <param name="notificationService">The notification service, which enables commands to display messages in the Intelligence Portal.</param> public ExampleCommandProvider( ICommandsContext commandsContext, ICommandContextState commandContextState, INotificationService notificationService) { mCommandsContext = commandsContext; mCommandContextState = commandContextState; mNotificationService = notificationService; }
/// <summary> /// Initializes a new instance of the <see cref="ItemDetailsCommandProvider"/> class. /// </summary> /// <remarks> /// The constructor requires an implementation of ICommandContextState /// because ItemDetailsCommandProvider is used with /// IGenericContextMenuCommandProviderFactoryRegistry as a factory for /// creating commands based on ICommandsContext objects. /// </remarks> public ItemDetailsCommandProvider( ICommandsContext commandsContext, ICommandContextState commandContextState, IIntentManager intentManager, ISubsettingExampleOriginIdentifierFactory subsettingExampleOriginIdentifierFactory, ISubsetExampleOriginHelper subsetExampleOriginHelper) { mCommandsContext = commandsContext; mCommandContextState = commandContextState; mIntentManager = intentManager; mSubsettingExampleOriginIdentifierFactory = subsettingExampleOriginIdentifierFactory; mSubsetExampleOriginHelper = subsetExampleOriginHelper; }