Ejemplo n.º 1
0
 public void Initialize(IComponentConfigurator componentConfigurator)
 {
     componentConfigurator.WithConverter <TestConverter>();
 }
Ejemplo n.º 2
0
        public void Initialize(IComponentConfigurator componentConfigurator)
        {
            if (componentConfigurator == null)
            {
                throw new ArgumentNullException(nameof(componentConfigurator));
            }

            componentConfigurator.WithConverter <Base64BinaryConverter>();
            componentConfigurator.WithConverter <BooleanConverter>();
            componentConfigurator.WithConverter <DateTimeConverter>();
            componentConfigurator.WithConverter <DecimalConverter>();
            componentConfigurator.WithConverter <DurationConverter>();
            componentConfigurator.WithConverter <FloatingPointLiteralConverter>();
            componentConfigurator.WithConverter <GuidConverter>();
            componentConfigurator.WithConverter <IntegerConverter>();
            componentConfigurator.WithConverter <StringConverter>();
            componentConfigurator.WithConverter <UntypedLiteralConverter>();
            componentConfigurator.WithConverter <UriConverter>();
        }