Example #1
0
 public CodeController(IEventService eventService, ISnippetService snippetService, ApplicationUserManager userManager, IUserService userService)
 {
     _eventService   = eventService;
     _snippetService = snippetService;
     _userService    = userService;
     _userManager    = userManager;
 }
 public SnippetsController(ISnippetService snippetService, IUtilityService utilityService,
                           ISearchKeyService searchKeyService, IProgrammingLanguageService languageService)
 {
     _snippetService   = snippetService;
     _searchKeyService = searchKeyService;
     _languageService  = languageService;
     _utilityService   = utilityService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginsService" /> class.
 /// </summary>
 /// <param name="fileSystem">The file system.</param>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="snippetService">The snippet service.</param>
 /// <param name="translator">The translator.</param>
 public PluginsService(
     IFileSystem fileSystem,
     ISettingsService settingsService,
     ISnippetService snippetService,
     ITranslator<string, CodeConfig> translator)
     : base(translator, fileSystem, settingsService, snippetService)
 {
     TraceService.WriteLine("PluginsService::Constructor");
 }
Example #4
0
 public AdminController(ApplicationUserManager userManager, IExportService exportService, IUserService userService, ISnippetService snippetService, IEventService eventService, IGroupService groupService)
 {
     _userManager    = userManager;
     _exportService  = exportService;
     _userService    = userService;
     _snippetService = snippetService;
     _eventService   = eventService;
     _groupService   = groupService;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ViewModelViewsService" /> class.
        /// </summary>
        /// <param name="snippetService">The snippet service.</param>
        /// <param name="settingsService">The settings service.</param>
        public ViewModelViewsService(
            ISnippetService snippetService,
            ISettingsService settingsService)
        {
            TraceService.WriteLine("ViewModelViewsService::Constructor");

            this.snippetService = snippetService;
            this.settingsService = settingsService;
        }
 public RegisterController(ISolutionService solutionService, ISolutionTypeService solutionTypeService,
                           ISearchKeyService searchKeyService, ISnippetService snippetService,
                           IProgrammingLanguageService languageService, IUtilityService utilityService)
 {
     _solutionService     = solutionService;
     _snippetService      = snippetService;
     _solutionTypeService = solutionTypeService;
     _searchKeyService    = searchKeyService;
     _utilityService      = utilityService;
     _languageService     = languageService;
 }
 public RegisterController(ISolutionService solutionService, ISolutionTypeService solutionTypeService,
     ISearchKeyService searchKeyService, ISnippetService snippetService,
     IProgrammingLanguageService languageService, IUtilityService utilityService)
 {
     _solutionService = solutionService;
     _snippetService = snippetService;
     _solutionTypeService = solutionTypeService;
     _searchKeyService = searchKeyService;
     _utilityService = utilityService;
     _languageService = languageService;
 }
Example #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginsService" /> class.
        /// </summary>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="snippetService">The snippet service.</param>
        public PluginsService(
            IFileSystem fileSystem,
            ISettingsService settingsService,
            ISnippetService snippetService)
        {
            TraceService.WriteLine("PluginsService::Constructor");

            this.fileSystem      = fileSystem;
            this.settingsService = settingsService;
            this.snippetService  = snippetService;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginsService" /> class.
        /// </summary>
        /// <param name="pluginService">The plugin service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="snippetService">The snippet service.</param>
        /// <param name="nugetService">The nuget service.</param>
        public PluginsService(
            IPluginService pluginService,
            ISettingsService settingsService,
            ISnippetService snippetService,
            INugetService nugetService)
        {
            TraceService.WriteLine("PluginsService::Constructor");

            this.pluginService = pluginService;
            this.settingsService = settingsService;
            this.snippetService = snippetService;
            this.nugetService = nugetService;
        }
 public SnippetController(IUserService userService, IUserTokenCreator tokenCreator,
                          IResponseCreator responseCreator, ITagService tagService,
                          ISnippetService snippetService, ILanguageService languageService,
                          IMapper mapper)
 {
     _userService     = userService;
     _tokenCreator    = tokenCreator;
     _responseCreator = responseCreator;
     _tagService      = tagService;
     _snippetService  = snippetService;
     _languageService = languageService;
     _mapper          = mapper;
 }
Example #11
0
        public SnippetsViewModel()
        {
            _snippetRepository = new SnippetRepository();
            _snippetService    = new SnippetService();

            Snippets = new ObservableCollection <Snippet>(
                _snippetRepository.GetAll());

            _snippetService.ApplySnippets(Snippets);

            AddCommand    = new DelegatingCommand(x => true, OnAdd);
            SaveCommand   = new DelegatingCommand(x => true, OnSave);
            DeleteCommand = new DelegatingCommand(x => true, OnDelete);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="BaseCodeService"/> class.
        /// </summary>
        /// <param name="translator">The translator.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="snippetService">The snippet service.</param>
        protected BaseCodeService(
            ITranslator<string, CodeConfig> translator,
            IFileSystem fileSystem, 
            ISettingsService settingsService,
            ISnippetService snippetService)
        {
            TraceService.WriteLine("BaseCodeService::Constructor");

            this.Translator = translator;
            this.FileSystem = fileSystem;
            this.SettingsService = settingsService;
            this.SnippetService = snippetService;

            this.NugetCommands = new List<string>();
        }
Example #13
0
        public DesignerViewModel(
            IDesignerControlCreatorService designerControlCreatorService,
            ISnippetService codeSnippetService,
            IWidgetCompiler compilerService,
            IWidgetService widgetService,
            IDialogService dialogService)
        {
            _designerControlCreatorService = designerControlCreatorService;
            _codeSnippetService            = codeSnippetService;
            _widgetService   = widgetService;
            _dialogService   = dialogService;
            _compilerService = compilerService;

            Initialize();
            InitCommands();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ServicesService" /> class.
        /// </summary>
        /// <param name="pluginTranslator">The plugin translator.</param>
        /// <param name="codeConfigTranslator">The code config translator.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="snippetService">The snippet service.</param>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        public ServicesService(
            ITranslator<FileInfoBase, Plugin> pluginTranslator,
            ITranslator<string, CodeConfig> codeConfigTranslator,
            IFileSystem fileSystem, 
            ISettingsService settingsService,
            ISnippetService snippetService,
            IPluginsService pluginsService,
            IMessageBoxService messageBoxService)
            : base(codeConfigTranslator, fileSystem, settingsService, snippetService)
        {
            TraceService.WriteLine("ServicesService::Constructor");

            this.pluginTranslator = pluginTranslator;
            this.pluginsService = pluginsService;
            this.messageBoxService = messageBoxService;
        }
Example #15
0
 public SnippetController(ISnippetService snippetService, IUserRepository userRepository)
 {
     _snippetService = snippetService;
     _userRepository = userRepository;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ServicesService" /> class.
        /// </summary>
        /// <param name="pluginTranslator">The plugin translator.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="codeConfigService">The code config service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="snippetService">The snippet service.</param>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="nugetService">The nuget service.</param>
        public ServicesService(
            ITranslator<FileInfoBase, Plugin> pluginTranslator,
            IFileSystem fileSystem, 
            ICodeConfigService codeConfigService,
            ISettingsService settingsService,
            ISnippetService snippetService,
            IPluginsService pluginsService,
            IMessageBoxService messageBoxService,
            INugetService nugetService)
        {
            TraceService.WriteLine("ServicesService::Constructor");

            this.pluginTranslator = pluginTranslator;
            this.fileSystem = fileSystem;
            this.codeConfigService = codeConfigService;
            this.settingsService = settingsService;
            this.snippetService = snippetService;
            this.pluginsService = pluginsService;
            this.messageBoxService = messageBoxService;
            this.nugetService = nugetService;
        }
 public SnippetController(ISnippetService snippetService) => _snippetService = snippetService;