public StreamMessageHandlerMethodFactory( ISmartMessageConverter compositeMessageConverter, IConversionService conversionService, IExpressionParser expressionParser, IEvaluationContext evaluationContext) { MessageConverter = compositeMessageConverter; var resolvers = new List <IHandlerMethodArgumentResolver>(); resolvers.Add(new SmartPayloadArgumentResolver(compositeMessageConverter)); resolvers.Add(new SmartMessageMethodArgumentResolver(compositeMessageConverter)); resolvers.Add(new HeaderMethodArgumentResolver(conversionService)); resolvers.Add(new HeadersMethodArgumentResolver()); resolvers.Add(new NullAwarePayloadArgumentResolver(compositeMessageConverter)); resolvers.Add(new PayloadExpressionArgumentResolver(expressionParser, evaluationContext)); resolvers.Add(new PayloadsArgumentResolver(expressionParser, evaluationContext)); resolvers.Add(new DictionaryArgumentResolver(expressionParser, evaluationContext)); SetArgumentResolvers(resolvers); AfterPropertiesSet(); }
public ServiceFactory() { _wContextFactory = new WContextFactory(); _conversionService = new ConversionService(); _entitiesService = new EntitiesService(_conversionService); _activityGenerationService = new ActivityGenerationService(); }
public ConversionsTabViewModel(IEventAggregator eventAggregator, IActionButtonFactory actionButtonFactory, IConversionService conversionService, IProcessDispatcherService processDispatcherService) : base(eventAggregator, processDispatcherService) { _conversionService = conversionService; Buttons = new IActionButtonViewModel[] { actionButtonFactory.MakeActionButtonViewModel("Delete", "Kill", () => { void KillProcesses(IEnumerable <IActiveProcessViewModel> processes) { foreach (MonitoredProcess conversionProcess in processes.ToArray().Select(process => process.Process)) { conversionProcess.Kill(); } } if (SelectedProcesses.Count == 0) { KillProcesses(Processes); return; } KillProcesses(SelectedProcesses); }) }; }
internal DefaultMessageHandlerMethodFactory(IConversionService conversionService, IMessageConverter converter, List <IHandlerMethodArgumentResolver> resolvers) { ConversionService = conversionService; MessageConverter = converter; CustomArgumentResolvers = resolvers; AfterPropertiesSet(); }
public ConfigurableCompositeMessageConverter(IConversionService conversionService = null) : base(InitDefaults()) { _registerDefaults = true; _conversionService = conversionService; AfterPropertiesSet(); }
public ConfigurableCompositeMessageConverter(IEnumerable <IMessageConverter> converters, bool registerDefaults, IConversionService conversionService = null) : base(registerDefaults ? InitDefaults(converters) : converters.ToList()) { _registerDefaults = registerDefaults; _conversionService = conversionService; AfterPropertiesSet(); }
public ArrayManipulationRepository(IDeleteService deleteService, IReverseService reverseService, IConversionService conversionService) { _deleteService = deleteService; _reverseService = reverseService; _conversionService = conversionService; }
public CardController(MTGService mtgservice, IMapper mapper, IRepoContext context, IConversionService conversion, UserManager <IdentityUser> userManager) { _mtgService = mtgservice; _mapper = mapper; _context = context; _conversion = conversion; _userManager = userManager; }
public BaseBinding(object target, PropertyInfo targetProperty, object source, string sourcePropertyName, IConversionService conversionService) { Target = target; TargetProperty = targetProperty; SourcePropertyName = sourcePropertyName; this.conversionService = conversionService; ChangeDataContext(source); }
public RoutedItemCoroutine(RouteInstance match, IControllerWrapperInstance controllerInstance, IHttpContext context, IConversionService conversionService, object model) { InstanceName = "RouteItem(" + string.Join(",", match.Parameters.Keys) + ")"; _match = match; _context = context; _controller = controllerInstance; _conversionService = conversionService; }
public ConversionController(IConversionService conversionService, ILogger <ConversionController> logger, ICurrencyService currencyService, IConversionAuditService conversionAuditService) { _conversionService = conversionService ?? throw new ArgumentNullException(nameof(IConversionService)); _currencyService = currencyService ?? throw new ArgumentNullException(nameof(ICurrencyService)); _logger = logger ?? throw new ArgumentNullException(nameof(ILogger)); _conversionAuditService = conversionAuditService ?? throw new ArgumentNullException(nameof(IConversionAuditService)); }
public UrlService(IConversionService conversionService, IUrlRepository urlRepository, IConfiguration configuration) { _conversionService = conversionService; _urlRepository = urlRepository; _configuration = configuration; }
/// <summary> /// Constucts the <see cref="ExtendedPropertiesRecordMapper"/>. /// </summary> /// <param name="conversionService"></param> /// <exception cref="ArgumentNullException"></exception> public ExtendedPropertiesRecordMapper(IConversionService conversionService) : base(1000) { // validate arguments if (conversionService == null) throw new ArgumentNullException("conversionService"); // set value this.conversionService = conversionService; }
public UnidadesController(IBitacoraMapper bitacoraMap, IUserService userService, IConversionMap conversionMap, IUnidadMap unidadMap, IUnidadService unidadService, IConversionService conversioService) { this.unidadService = unidadService; this.conversioService = conversioService; this.conversionMap = conversionMap; this.unidadMap = unidadMap; this.userService = userService; this.bitacoraMap = bitacoraMap; }
/// <summary> /// /// </summary> /// <param name="conversionService"></param> /// <exception cref="ArgumentNullException"></exception> public IsGreaterThan(IConversionService conversionService) { // validate arguments if (conversionService == null) throw new ArgumentNullException("conversionService"); // set values this.conversionService = conversionService; }
public StandardTypeConverter(IConversionService conversionService) { if (conversionService == null) { throw new ArgumentNullException(nameof(conversionService)); } ConversionService = conversionService; }
/// <summary> /// /// </summary> /// <param name="conversionService"></param> /// <exception cref="ArgumentNullException"></exception> public IsSmallerOrEqual(IConversionService conversionService) { // validate arguments if (conversionService == null) throw new ArgumentNullException("conversionService"); // set values this.conversionService = conversionService; }
/// <summary> /// /// </summary> /// <param name="conversionService"></param> /// <exception cref="ArgumentNullException"></exception> public ConvertToString(IConversionService conversionService) { // validate arguments if (conversionService == null) throw new ArgumentNullException("conversionService"); // set values this.conversionService = conversionService; }
/// <summary> /// Constructs this processor. /// </summary> public ParentOfQueryArgumentProcessor(IConversionService conversionService) : base(200) { // validate arguments if (conversionService == null) throw new ArgumentNullException("conversionService"); // set values this.conversionService = conversionService; }
public GenericMessageConverter(IConversionService conversionService) { if (conversionService == null) { throw new ArgumentNullException(nameof(conversionService)); } this._conversionService = conversionService; }
public MainPage(IConversionService conversionService) { ConversionService = conversionService; this.InitializeComponent(); btnFind.Click += BtnFind_Click; btnConvert.Click += BtnConvert_Click; btnSaveResults.Click += BtnSaveResults_Click; btnAllInOne.Click += BtnAllInOne_Click; }
public MainPage(IConversionService conversionService) { ConversionService = conversionService; this.InitializeComponent(); btnFind.Click += BtnFind_Click; btnConvert.Click += BtnConvert_Click; btnSaveResults.Click += BtnSaveResults_Click; btnAllInOne.Click += BtnAllInOne_Click; }
/// <summary> /// /// </summary> /// <param name="templateService"></param> /// <param name="conversionService"> </param> /// <exception cref="ArgumentNullException"></exception> public RenderCrumbTrail(ITemplateService templateService, IConversionService conversionService) { // validate arguments if (templateService == null) throw new ArgumentNullException("templateService"); if (conversionService == null) throw new ArgumentNullException("conversionService"); // set values this.templateService = templateService; this.conversionService = conversionService; }
protected void AfterPropertiesSet() { if (_registerDefaults) { if (_conversionService == null) { _conversionService = DefaultConversionService.Singleton; } Converters.Add(new GenericMessageConverter(_conversionService)); } }
/// <summary> /// Constructs the web security service. /// </summary> /// <param name="conversionService">The <see cref="IConversionService"/>.</param> /// <param name="authenticationProviders">The <see cref="IEnumerable{T}"/>s.</param> /// <param name="encryptionService">The <see cref="IEncryptionService"/>.</param> public WebSecurityService(IConversionService conversionService, IEnumerable<AuthenticationProvider> authenticationProviders, IEncryptionService encryptionService) : base(authenticationProviders) { //validate arguments if (conversionService == null) throw new ArgumentNullException("conversionService"); if (encryptionService == null) throw new ArgumentNullException("encryptionService"); // set values this.conversionService = conversionService; this.encryptionService = encryptionService; }
public static string ToString(IEnumerable collection, Type targetType, IConversionService conversionService) { var sj = new StringBuilder(); foreach (var sourceElement in collection) { var targetElement = conversionService.Convert(sourceElement, sourceElement.GetType(), targetType); sj.Append(targetElement.ToString()); sj.Append(DELIMITER); } return(sj.ToString(0, sj.Length - 1)); }
public SeriesService( IScoringCalculatorFactory scoringCalculatorFactory, IScoringService scoringService, IConversionService converter, IDbObjectBuilder dbObjBuilder, ISailScoresContext dbContext, IMapper mapper) { _scoringCalculatorFactory = scoringCalculatorFactory; _scoringService = scoringService; _converter = converter; _dbObjectBuilder = dbObjBuilder; _dbContext = dbContext; _mapper = mapper; }
public HttpModule() { _virtualDir = string.Empty; _errorPageString = ResourceContentLoader.LoadText("errorTemplate.html"); _conversionService = new ConversionService(); ServiceLocator.Locator.Register<IConversionService>(_conversionService); ServiceLocator.Locator.Register<HttpModule>(this); ServiceLocator.Locator.Register<SecurityDefinition>(_securityDefinition); _filtersHandler = ServiceLocator.Locator.Resolve<IFilterHandler>(); if (_filtersHandler == null) { _filtersHandler = new FilterHandler(); ServiceLocator.Locator.Register<IFilterHandler>(_filtersHandler); } SetParameter(HttpParameters.HttpShowDirectoryContent, true); RegisterDefaultFiles("index.htm"); RegisterDefaultFiles("index.html"); }
public DefaultMessageHandlerMethodFactory(IConversionService conversionService, IMessageConverter converter, List <IHandlerMethodArgumentResolver> resolvers) { ConversionService = conversionService; MessageConverter = converter; CustomArgumentResolvers = resolvers; if (ConversionService == null) { ConversionService = new GenericConversionService(); } if (MessageConverter == null) { MessageConverter = new GenericMessageConverter(ConversionService); } if (_argumentResolvers.Resolvers.Count == 0) { _argumentResolvers.AddResolvers(InitArgumentResolvers()); } }
public StreamMessageHandlerMethodFactory( IApplicationContext applicationContext, ISmartMessageConverter compositeMessageConverter, IConversionService conversionService) : base(conversionService, compositeMessageConverter) { MessageConverter = compositeMessageConverter; var resolvers = new List <IHandlerMethodArgumentResolver>(); resolvers.Add(new SmartPayloadArgumentResolver(compositeMessageConverter)); resolvers.Add(new SmartMessageMethodArgumentResolver(compositeMessageConverter)); resolvers.Add(new HeaderMethodArgumentResolver(conversionService)); resolvers.Add(new HeadersMethodArgumentResolver()); resolvers.Add(new NullAwarePayloadArgumentResolver(compositeMessageConverter)); resolvers.Add(new PayloadExpressionArgumentResolver(applicationContext)); resolvers.Add(new PayloadsArgumentResolver(applicationContext)); resolvers.Add(new DictionaryArgumentResolver(applicationContext)); SetArgumentResolvers(resolvers); }
public DestinationVariableMethodArgumentResolver(IConversionService conversionService) : base(conversionService) { }
protected QueryHandlerBase(IUnitOfWork unitOfWork, IConversionService converter) { _converter = converter; UnitOfWork = unitOfWork; }
public UnitOfWork(DbContext context, IConversionService conversionService) { Context = context ?? throw new ArgumentNullException(nameof(context)); _conversionService = conversionService ?? throw new ArgumentNullException(nameof(conversionService)); }
public ConversionController(IConversionService conversionService, IMeasurementService measurementService) { _conversionService = conversionService; _measurementService = measurementService; }
public TransactionService(DataModel context, IConversionService conversionService) { _context = context; _conversionService = conversionService; }
public V8Commit20([Import("HashService")] IHashService hashService, [Import("CovertionService")] IConversionService<UInt64, DateTime> covertionService) { this._convertionService = covertionService; this._hashService = hashService; }
public GenericMessageConverter() { _conversionService = DefaultConversionService.Singleton; }
public SecureAPIMessageAttributeService(IConversionService conversionService, IPrincipalService principalService) { this._conversionService = conversionService; this._principalService = principalService; }
public GetIngredientByIdQueryHandler(IUnitOfWork unitOfWork, IConversionService converter) : base(unitOfWork, converter) { }
public V8CommitController(IHashService hashService, IConversionService<UInt64, DateTime> covertionService) { this._convertionService = covertionService; this._hashService = hashService; }
public StringToArrayConverter(IConversionService conversionService) : base(new HashSet <(Type Source, Type Target)>() { (typeof(string), typeof(object[])) })
public DefaultMessageHandlerMethodFactory(IConversionService conversionService, IMessageConverter converter, IApplicationContext context = null) : this(conversionService, converter, null, context) { ConversionService = conversionService; MessageConverter = converter; }
public HeaderMethodArgumentResolver(IConversionService conversionService, IApplicationContext context = null) : base(conversionService, context) { }
public HeaderMethodArgumentResolver(IConversionService conversionService) : base(conversionService) { }