public ToolbarCommandsHelper(
            IEventAggregator events, IParameterDicConverter parameterDicConverter,
            Func <DirectoryChangedEvent, IEntryModel[]> whenDirectoryChanged = null,
            Func <SelectionChangedEvent, IEntryModel[]> whenSelectionChanged = null,
            IProfile[] rootProfiles = null, params ICommandProvider[] extraCommandProviders)
        {
            _parameterDicConverter = parameterDicConverter;
            _extraCommandProviders = extraCommandProviders;

            _whenDirectoryChanged = whenDirectoryChanged;
            _whenSelectionChanged = whenSelectionChanged;

            if (events != null)
            {
                if (_whenDirectoryChanged != null || _whenSelectionChanged != null)
                {
                    events.Subscribe(this);
                }
            }

            _rootProfiles = rootProfiles;
            CommandModels = new EntriesHelper <ICommandViewModel>(loadCommandsTask);
        }
 protected ToolbarCommandsHelper(IProfile[] rootProfiles)
 {
     //This doesn't work.
     CommandModels = new EntriesHelper <ICommandViewModel>(loadCommandsTask);
 }