/// <exception cref="ArgumentNullException">any argument is null</exception> /// <exception cref="ArgumentException">defaultDirectory is empty</exception> public FilesViewPresenter(IFilesView filesView, IToolBarView toolBarView, IAddressToolBar addressToolBar, ICommandsContainer commandsContainer, IEnvironmentHelper environmentHelper, Options options, IMessageHelper messageHelper) { Checker.CheckNull(filesView, toolBarView, addressToolBar, commandsContainer, environmentHelper); this.filesView = filesView; this.toolBarView = toolBarView; this.addressToolBar = addressToolBar; this.commandsContainer = commandsContainer; this.environmentHelper = environmentHelper; this.options = options; this.messageHelper = messageHelper; sorter = FileSorter.CreateSorter(options.InitialSortColumn, options.InitialSortDirection); filesView.SortByName += view_SortByName; filesView.SortByLength += ViewSortByLength; filesView.SortByType += view_SortByType; filesView.SortByModifiedDate += ViewSortByModifiedDate; filesView.OpenDirectory += view_OpenDirectory; filesView.Cipher += view_Cipher; filesView.Decipher += view_Decipher; filesView.ToUpperDirectory += view_ToUpperDirectory; filesView.SelectedEntityChanged += view_SelectedEntityChanged; addressToolBar.PathChanged += addressToolBar_PathChanged; }
/// <exception cref="ArgumentNullException">any argument is null</exception> public CipherFormPresenter(ICipherForm cipherForm, IList <FileSystemEntity> inputFileEntities, IRsaFactory rsaFactory, KeySerializer keySerializer, ICommandsContainer commandsContainer, IFileUnifier fileUnifier, IEnvironmentHelper environmentHelper, IMessageHelper messageHelper, Options options) { Checker.CheckNull(cipherForm, keySerializer, commandsContainer); this.cipherForm = cipherForm; this.inputFileEntities = inputFileEntities; this.rsaFactory = rsaFactory; this.keySerializer = keySerializer; this.commandsContainer = commandsContainer; this.fileUnifier = fileUnifier; this.environmentHelper = environmentHelper; this.messageHelper = messageHelper; this.options = options; cipherForm.InputFileEntities = inputFileEntities; cipherForm.TotalLength = GetTotalLength(); cipherForm.OutputFileName = GetOutputFileName(); cipherForm.ZipСompression = options.ZipСompression; cipherForm.Cipher += cipherForm_Cipher; cipherForm.CancelCipher += cipherForm_CancelCipher; cipherForm.OutputFileNameChanged += cipherForm_OutputFileNameChanged; cipherForm.PublicKeyChanged += cipherForm_PublicKeyChanged; }
public DeleteUserDataDialog(IBotDataService botDataService, IMessageHelper messageHelpers, IList <EntityRecommendation> entities) { SetField.NotNull(out _botDataService, nameof(botDataService), botDataService); SetField.NotNull(out _messageHelpers, nameof(messageHelpers), messageHelpers); _entities = entities; }
protected GlobalCommand(ICommandRouter commandRouter, IMessageHelper messageHelper) { CommandRouter = commandRouter; MessageHelper = messageHelper; Name = GetType().UnderlyingSystemType.Name; }
public CommandsContainer(Options options, IMainForm mainForm, IEnvironmentHelper environmentHelper, IMessageHelper messageHelper, IFormFactory formFactory) { var primeTest = new RabinMillerTest(20); var primeGenerator = new PrimeGenerator(primeTest); var keyGenerator = new KeyGenerator(new RsaKeyGenerator(), primeGenerator); var fileUnifier = new FileUnifier(); var zipAlgorithm = new ZipAlgorithm(environmentHelper); IRsaFactory rsaFactory = new RsaFactory(new FileFactory(0), options, environmentHelper, zipAlgorithm); AboutProgramCommand = new AboutProgramCommand(formFactory, environmentHelper); CipherCommand = new CipherCommand(this, mainForm.FilesView, formFactory, fileUnifier, environmentHelper, options, rsaFactory, messageHelper); DecipherCommand = new DecipherCommand(this, mainForm.FilesView, rsaFactory, environmentHelper, formFactory, messageHelper, fileUnifier); ExitCommand = new ExitCommand(); GenerateKeysCommand = new GenerateKeysCommand(keyGenerator, options, formFactory, messageHelper); refreshDirectoryCommand = new RefreshDirectoryCommand(messageHelper); toUpperFolderCommand = new ToUpperFolderCommand(messageHelper); changeLanguageCommand = new ChangeLanguageCommand(options); var cryptoViews = new ICryptoView[] { mainForm.MainMenu, mainForm.ToolBar, mainForm.FilesView }; RefreshCryptoViewsCommand = new RefreshCryptoViewsCommand(mainForm.FilesView, cryptoViews); }
public GetStartedDialog(IBotDataService botDataService, IDialogBuilder dialogBuilder, IConversationService conversationService, IMessageHelper messageHelper) { SetField.NotNull(out _botDataService, nameof(botDataService), botDataService); SetField.NotNull(out _dialogBuilder, nameof(dialogBuilder), dialogBuilder); SetField.NotNull(out _conversationService, nameof(conversationService), conversationService); SetField.NotNull(out _messageHelper, nameof(messageHelper), messageHelper); }
/// <summary> /// Provides access to the Entoarox Framework's <see cref="IMessageHelper"/> API. /// </summary> /// <param name="helper">The <see cref="IModHelper"/> of the mod calling this method</param> /// <returns></returns> public static IMessageHelper Messages(this IModHelper helper) { if (_MessageHelper == null) { _MessageHelper = new MessageHelper(); } return(_MessageHelper); }
public RpcConsumer(string busId, IModel model, IMessageHelper messageHelper, Dictionary <string, ISerializer> serializers, ITrace trace) : base(model) { _busId = busId; _serializers = serializers; _trace = trace; _messageHelper = messageHelper; }
public PreferredWeatherLocationDialog(IBotDataService botDataService, IWeatherService weatherService, IList <EntityRecommendation> entities, IMessageHelper messageHelpers) { SetField.NotNull(out _botDataService, nameof(botDataService), botDataService); SetField.NotNull(out _weatherService, nameof(weatherService), weatherService); SetField.NotNull(out _messageHelpers, nameof(messageHelpers), messageHelpers); _entities = entities; }
public DocumentService() { response = new ActionResponse(); response.Success = true; response.Message = "Ok"; messageHelper = new MessageHelper(); unitWork = new UnitOfWork(); }
public GenerateKeysCommand(IKeyGenerator keyGenerator, Options options, IFormFactory formFactory, IMessageHelper messageHelper) { this.keyGenerator = keyGenerator; this.options = options; this.formFactory = formFactory; this.messageHelper = messageHelper; }
/// <summary>Provides access to the Entoarox Framework's <see cref="IMessageHelper" /> API.</summary> /// <param name="helper">The <see cref="IModHelper" /> of the mod calling this method</param> public static IMessageHelper Messages(this IModHelper helper) { if (IModHelperExtensions.MessageHelper == null) { IModHelperExtensions.MessageHelper = new MessageHelper(); } return(IModHelperExtensions.MessageHelper); }
public GetWeatherForecastDialog(IWeatherService weatherService, IList <EntityRecommendation> entities, IBotDataService botDataService, IMessageHelper messageHelpers) { _weatherService = weatherService; _entities = entities; _botDataService = botDataService; _messageHelpers = messageHelpers; }
public BotPersonaDialog(IBotDataService botDataService, IList <EntityRecommendation> entities, PersonalityChatPersona preferredBotPersona, IMessageHelper messageHelpers) { SetField.NotNull(out _botDataService, nameof(botDataService), botDataService); SetField.NotNull(out _messageHelper, nameof(messageHelpers), messageHelpers); _entities = entities; _preferredBotPersona = preferredBotPersona; }
public MessageConsumer(IModel model, string busId, IMessageHelper messageHelper, Dictionary <string, ISerializer> serializers, IErrorSubscriber errorSubscriber, TaskScheduler scheduler, bool receiveSelfPublish) : base(model) { _busId = busId; _messageHelper = messageHelper; _serializers = serializers; _errorSubscriber = errorSubscriber; _scheduler = scheduler; _receiveSelfPublish = receiveSelfPublish; }
public Publisher(IModel model, string busId, PublisherConfigurator configuration, IMessageHelper messageHelper) { _model = model; _configuration = configuration; _messageHelper = messageHelper; _busId = busId; _model.BasicReturn += ModelOnBasicReturn; }
// private IBackgroundWorkerHelper backgroundWorkerHelper; public TestHelperFactory() { winHelperFactory = new WinHelperFactory(); messageHelper = new TestMessageHelper(); // redirectHelper = winHelperFactory.RedirectHelper; redirectHelper = new TestRedirectHelper(); pathHelper = winHelperFactory.PathHelper; }
public DistrictService() { unitWork = new UnitOfWork(); msgHelper = new MessageHelper(); response = new ActionResponse(); config = new MapperConfiguration(cfg => { cfg.CreateMap <EFDistrict, District>(); }); }
protected PublisherBase(IModel model, string busId, PublisherConfigurator configuration, IMessageHelper messageHelper, ISendHelper sendHelper) { _model = model; _configuration = configuration; _messageHelper = messageHelper; _sendHelper = sendHelper; _busId = busId; _model.BasicReturn += ModelOnBasicReturn; }
public MessageConsumer(IModel model, string busId, IMessageHelper messageHelper, Dictionary<string, ISerializer> serializers, IErrorSubscriber errorSubscriber, TaskScheduler scheduler, bool receiveSelfPublish) : base(model) { _busId = busId; _messageHelper = messageHelper; _serializers = serializers; _errorSubscriber = errorSubscriber; _scheduler = scheduler; _receiveSelfPublish = receiveSelfPublish; }
public CategoryService() { unitWork = new UnitOfWork(); msgHelper = new MessageHelper(); response = new ActionResponse(); config = new MapperConfiguration(cfg => { cfg.CreateMap <EFCategory, Category>(); }); }
public CipherManager(IRsaFileCipher rsaFileCipher, IFileUnifier fileUnifier, IEnvironmentHelper environmentHelper, IMessageHelper messageHelper) { this.rsaFileCipher = rsaFileCipher; this.fileUnifier = fileUnifier; this.environmentHelper = environmentHelper; this.messageHelper = messageHelper; }
public ComplainantService() { unitWork = new UnitOfWork(); msgHelper = new MessageHelper(); response = new ActionResponse(); config = new MapperConfiguration(cfg => { cfg.CreateMap <EFComplainant, Complainant>(); }); }
public ComplaintService() { unitWork = new UnitOfWork(); msgHelper = new MessageHelper(); response = new ActionResponse(); /*config = new MapperConfiguration(cfg => * { * cfg.CreateMap<EFComplaint, ComplaintView>(); * });*/ }
public MessageConsumer(string busId, IModel model, IMessageHelper messageHelper, ISendHelper sendHelper, Dictionary <string, ISerializer> serializers, IErrorSubscriber errorSubscriber, bool receiveSelfPublish, bool neverReply, string replyExchange, ITrace trace) : base(model) { _busId = busId; _messageHelper = messageHelper; _serializers = serializers; _errorSubscriber = errorSubscriber; _receiveSelfPublish = receiveSelfPublish; _neverReply = neverReply; _sendHelper = sendHelper; _replyExchange = replyExchange; _trace = trace; }
/// <param name="isVSIX"> /// Indicates that the call /// is from Visual Studio. /// </param> protected AbstractSwitch(bool isVSIX, ReferenceType type, IPackageOption packageOption, IProjectHelper projectHelper, IMessageHelper messageHelper) { IsVSIX = isVSIX; if (IsVSIX) { DTE = Package.GetGlobalService(typeof(DTE)) as DTE; } Type = type; PackageOption = packageOption; ProjectHelper = projectHelper; MessageHelper = messageHelper; }
public RootLuisDialog( IBotDataService botDataService, IConversationService conversationService, IDialogBuilder dialogBuilder, IHeadTailsService headTailsService, IJokeService jokeService, IMessageHelper messageHelper) : base(new LuisService(new LuisModelAttribute( ConfigurationManager.AppSettings["luis:ModelId"], ConfigurationManager.AppSettings["luis:SubscriptionId"]))) { SetField.NotNull(out _botDataService, nameof(botDataService), botDataService); SetField.NotNull(out _conversationService, nameof(conversationService), conversationService); SetField.NotNull(out _dialogBuilder, nameof(dialogBuilder), dialogBuilder); SetField.NotNull(out _headTailsService, nameof(headTailsService), headTailsService); SetField.NotNull(out _jokeService, nameof(jokeService), jokeService); SetField.NotNull(out _messageHelper, nameof(messageHelper), messageHelper); }
public MessageConsumer(string busId, IModel model, IMessageHelper messageHelper, ISendHelper sendHelper, Dictionary <string, ISerializer> serializers, IErrorSubscriber errorSubscriber, TaskScheduler scheduler, bool receiveSelfPublish, bool neverReply, string replyExchange, ITrace trace) : base(model) { _busId = busId; _messageHelper = messageHelper; _serializers = serializers; _errorSubscriber = errorSubscriber; _receiveSelfPublish = receiveSelfPublish; _neverReply = neverReply; _sendHelper = sendHelper; _replyExchange = replyExchange; _trace = trace; _taskFactory = new TaskFactory(CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskContinuationOptions.None, scheduler); }
public HomesViewModel(IList <string> streets, IWebWorker worker, IParser parser, IMessageHelper messageHelper, IMessage messageService) { _streets = streets; _worker = worker; _parser = parser; _messageHelper = messageHelper; _messageService = messageService; _messageService.Subscribe <MessageArgs>(OnStreetsChanged); Download = DelegateCommand.FromAsyncHandler(OnDownload, CanDownload); }
public MessageConsumer(string busId, IModel model, IMessageHelper messageHelper, ISendHelper sendHelper, Dictionary<string, ISerializer> serializers, IErrorSubscriber errorSubscriber, TaskScheduler scheduler, bool receiveSelfPublish, bool neverReply, string replyExchange, ITrace trace) : base(model) { _busId = busId; _messageHelper = messageHelper; _serializers = serializers; _errorSubscriber = errorSubscriber; _receiveSelfPublish = receiveSelfPublish; _neverReply = neverReply; _sendHelper = sendHelper; _replyExchange = replyExchange; _trace = trace; _taskFactory = new TaskFactory(CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskContinuationOptions.None, scheduler); }
/// <exception cref="ArgumentNullException">commandsContainer is null</exception> public DecipherCommand(ICommandsContainer commandsContainer, IFilesView filesView, IRsaFactory rsaFactory, IEnvironmentHelper environmentHelper, IFormFactory formFactory, IMessageHelper messageHelper, IFileUnifier fileUnifier) { Checker.CheckNull(commandsContainer); this.commandsContainer = commandsContainer; this.filesView = filesView; this.rsaFactory = rsaFactory; this.environmentHelper = environmentHelper; this.formFactory = formFactory; this.messageHelper = messageHelper; this.fileUnifier = fileUnifier; }
public GenerateKeysFormPresenter(IGenerateKeysForm generateKeysForm, IKeyGenerator keyGenerator, Options options, IMessageHelper messageHelper, IFormFactory formFactory) { this.generateKeysForm = generateKeysForm; this.keyGenerator = keyGenerator; this.options = options; this.messageHelper = messageHelper; this.formFactory = formFactory; generateKeysForm.MaxRsaKeyLength = options.MaxRsaKeyLength; generateKeysForm.MinRsaKeyLength = options.MinRsaKeyLength; generateKeysForm.RsaKeyLength = options.RsaKeyLength; RefreshPublicExponent(); generateKeysForm.Generate += generateKeysForm_Generate; generateKeysForm.ChangePublicExponent += generateKeysForm_ChangePublicExponent; generateKeysForm.CancelGenerateKeys += generateKeysForm_CancelGenerateKeys; }
public TransactionalPublisher(IModel model, string busId, PublisherConfigurator configuration, IMessageHelper messageHelper, ISendHelper sendHelper) : base(model, busId, configuration, messageHelper, sendHelper) { _model.TxSelect(); }
public ConfirmPublisher(IModel model, string busId, PublisherConfigurator configuration, IMessageHelper messageHelper) : base(model, busId, configuration, messageHelper) { _model.ConfirmSelect(); }
public RpcConsumer(string busId, IModel model, IMessageHelper messageHelper, Dictionary<string, ISerializer> serializers, ITrace trace) : base(model) { _busId = busId; _serializers = serializers; _trace = trace; _messageHelper = messageHelper; }
public MessageMonitorConsumer(IMessageHelper messageHelper, Action<RawBusMessage> monitor) { _messageHelper = messageHelper; _monitor = monitor; }
public RpcConsumer(IModel model, IMessageHelper messageHelper, Dictionary<string, ISerializer> serializers) : base(model) { _serializers = serializers; _messageHelper = messageHelper; }
public TransactionalMessageConsumer(IModel model, string busId, IMessageHelper messageHelper, Dictionary<string, ISerializer> serializers, IErrorSubscriber errorSubscriber, TaskScheduler scheduler, bool receiveSelfPublish) : base(model, busId, messageHelper, serializers, errorSubscriber, scheduler, receiveSelfPublish) { }
public TransactionalMessageConsumer(string busId, IModel model, IMessageHelper messageHelper, ISendHelper sendHelper, Dictionary<string, ISerializer> serializers, IErrorSubscriber errorSubscriber, TaskScheduler scheduler, bool receiveSelfPublish, bool neverReply) : base(busId, model, messageHelper, sendHelper, serializers, errorSubscriber, scheduler, receiveSelfPublish, neverReply) { }
public TransactionalMessageConsumer(string busId, IModel model, IMessageHelper messageHelper, ISendHelper sendHelper, IExceptionFilter exceptionFilter, Dictionary<string, ISerializer> serializers, IErrorSubscriber errorSubscriber, TaskScheduler scheduler, bool receiveSelfPublish, bool neverReply, string replyExchange, ITrace trace) : base(busId, model, messageHelper, sendHelper, serializers, errorSubscriber, scheduler, receiveSelfPublish, neverReply, replyExchange, trace) { _exceptionFilter = exceptionFilter; }
public HomeController(IMessageHelper iMessageHelper) { _iMessageHelper = iMessageHelper; }