public MoviesService(IMovieRepositorio MovieRepositorio, IGrammarService GrammarService ) { this.GrammarService = GrammarService; this.MovieRepositorio = MovieRepositorio; }
public PartialsController( IGrammarService _GrammarService, IGrammarCategoryService _GrammarCategoryService) { this._GrammarService = _GrammarService; this._GrammarCategoryService = _GrammarCategoryService; }
public void Start(NatSpeakService natSpeakService) { _natSpeakService = natSpeakService ?? throw new ArgumentNullException(nameof(natSpeakService)); ShowConsole(); _logger.Info("Starting..."); _logger.Info( $"Product version: {Assembly.GetExecutingAssembly().GetName().Version}" ); // Get a reference to the GrammarService instance. _grammarService = _natSpeakService.GrammarService; _grammarService.GrammarSerializer = new GrammarSerializer(); _logger.Info("Querying Dragon Naturally Speaking..."); var profileName = _natSpeakService.GetCurrentUserProfileName(); var profilePath = _natSpeakService.GetUserDirectory(profileName); _logger.Info($"Dragon Profile Loaded: {profileName}"); _logger.Info($"Dragon Profile Path: {profilePath}"); LoadGrammars(); }
public ArticuloService(IArticuloRepositorio ArticuloRepositorio, IGrammarService GrammarService ) { this.GrammarService = GrammarService; this.ArticuloRepositorio = ArticuloRepositorio; }
public void Init() { InternalGrammarService = FerOmegaInjections.InternalGrammarService; TokenizationService = FerOmegaInjections.TokenizationService; AstService = FerOmegaInjections.AstService; SqlGrammarService = FerOmegaInjections.SqlGrammarService; SqlProvider = FerOmegaInjections.SqlProvider; }
protected Grammar(RuleFactory ruleFactory, IGrammarService grammarService) { Debug.Assert(ruleFactory != null); Debug.Assert(grammarService != null); _grammarService = grammarService; RuleFactory = ruleFactory; }
public async Task Start(NatSpeakService natSpeakService) { _natSpeakService = natSpeakService ?? throw new ArgumentNullException(nameof(natSpeakService)); ShowConsole(); _logger.Info("Starting..."); _logger.Info( $"Mouse Plot version: {Assembly.GetExecutingAssembly().GetName().Version}" ); // Get a reference to the GrammarService instance. _grammarService = _natSpeakService.GrammarService; _grammarService.GrammarSerializer = new GrammarSerializer(); _logger.Info("Querying Dragon Naturally Speaking..."); _logger.Info($"Dragon Version: {_natSpeakService.GetDragonVersion()}"); String profileName; String profilePath; for (var notified = false;; notified = true) { profileName = _natSpeakService.GetCurrentUserProfileName(); // If a profile name could not be retrieved, then either the user // hasn't selected a profile yet, or NatSpeak hasn't been started. if (profileName == null) { if (notified == false) { _logger.Info("Could not load profile. Will try again."); ShowNotifyInfo("Could not load profile. Will try again."); } // Wait for a bit. await Task.Delay(2000); // Try again... continue; } // Get the file-system location of the user's profile (for informational purposes). profilePath = _natSpeakService.GetUserDirectory(profileName); // Profile found. break; } _logger.Info($"Dragon Profile Loaded: {profileName}"); _logger.Info($"Dragon Profile Path: {profilePath}"); LoadGrammars(); CloseConsole(); }
// For Testing public MousePlotGrammar(IGrammarService grammarService, IScreen screen, IWindow plotWindow, IZoomWindow zoomWindow, IWindow cellWindow, IWindow markArrowWindow) : base(grammarService) { _currentScreen = screen; _plotWindow = plotWindow; _zoomWindow = zoomWindow; _cellWindow = cellWindow; _markArrowWindow = markArrowWindow; }
public ExamDataCreateUpdateModel( IExamCategoryService examCategoryService, ISkillCategoryService skillCategoryService, ISkillPartService skillPartService, IExamDataLibraryService examDataLibraryService, IGrammarService grammarService) { _ExamCategoryService = examCategoryService; _SkillCategoryService = skillCategoryService; _SkillPartService = skillPartService; _ExamDataLibraryService = examDataLibraryService; _GrammarService = grammarService; }
protected Grammar(IGrammarService grammarService) : this(new RuleFactory(), grammarService) { // This is a list of the rules themselves (by name) _rules = new Dictionary <String, IRule>(StringComparer.CurrentCultureIgnoreCase); _rulesById = new Dictionary <UInt32, IRule>(); // These are lookups to find the numeric ids for words/rule names _wordIds = new Dictionary <String, UInt32>(StringComparer.CurrentCultureIgnoreCase); _ruleIds = new Dictionary <String, UInt32>(StringComparer.CurrentCultureIgnoreCase); _activeRules = new Dictionary <String, UInt32>(); }
public TwitterBotHostedService(ILogger <TwitterBotHostedService> logger, IEnumerable <IGrammarService> grammarServices, ITwitterLogService twitterLogService, ITwitterClient userClient, IOptions <TwitterBotSettings> options) { _logger = logger; _twitterLogService = twitterLogService; _twitterClient = userClient; _twitterBotSettings = options.Value; _grammarService = grammarServices.First(v => v.GrammarAlgorith == Defaults.DefaultAlgorithm); _grammarService.SetStrictnessLevel(CorrectionStrictnessLevels.Tolerant); }
public TwitterBotHostedService(ILogger <TwitterBotHostedService> logger, IEnumerable <IGrammarService> grammarServices, ITwitterLogService twitterLogService, ITwitterClient userClient, IOptions <TwitterBotSettings> options, IGithubService githubService, IScheduledTweetService scheduledTweetService, ISentimentAnalysisService sentimentAnalysisService) : base(logger, twitterLogService, userClient, options.Value, scheduledTweetService, sentimentAnalysisService) { _githubService = githubService; _grammarService = grammarServices.First(v => v.GrammarAlgorith == Defaults.DefaultAlgorithm); _grammarService.SetStrictnessLevel(CorrectionStrictnessLevels.Tolerant); }
public SqlProvider(IGrammarService <T> sqlGrammarService) { this.sqlGrammarService = sqlGrammarService; }
public OperatorService(IGrammarService <IGrammarConfig> grammarService) { this.grammarService = grammarService; }
public MousePlotGrammar(IGrammarService grammarService) : this(grammarService, new TestableScreen().PrimaryScreen, new PlotWindow(), new ZoomWindow(), new CellWindow(), new ArrowWindow()) { }
public AstService(IGrammarService <IGrammarConfig> grammarService, IOperatorService operatorService) { this.grammarService = grammarService; this.operatorService = operatorService; }
public TestGrammar(IGrammarService grammarService) : base(grammarService) { }
public TokenizationService(IGrammarService <T> grammarService) { this.grammarService = grammarService; }