public CommandService( CommandSettingsService commandSettingsService, [ImportMany] IEnumerable <Lazy <CommandDefinition, CommandDefinitionMetadata> > commands) { _commandSettingsService = commandSettingsService; _commands = commands; _resolvedCommands = new Lazy <IImmutableDictionary <string, Lazy <CommandDefinition> > >(ResolveCommands); }