Ejemplo n.º 1
0
 public ByteMapperInputFormatter(ByteMapperFormatterConfig config)
 {
     this.config = config;
     foreach (var mediaType in config.SupportedMediaTypes)
     {
         SupportedMediaTypes.Add(mediaType);
     }
 }
Ejemplo n.º 2
0
 public EnumerableOutputWriter(ByteMapperFormatterConfig config, string profile)
 {
     mapper     = String.IsNullOrEmpty(profile) ? config.MapperFactory.Create <T>() : config.MapperFactory.Create <T>(profile);
     bufferSize = Math.Max(config.BufferSize, mapper.Size);
 }
Ejemplo n.º 3
0
 public SingleInputReader(ByteMapperFormatterConfig config, string profile)
 {
     mapper     = String.IsNullOrEmpty(profile) ? config.MapperFactory.Create <T>() : config.MapperFactory.Create <T>(profile);
     factory    = config.DelegateFactory.CreateFactory <T>();
     bufferSize = mapper.Size;
 }
Ejemplo n.º 4
0
 public SingleOutputWriter(ByteMapperFormatterConfig config, string profile)
 {
     mapper     = String.IsNullOrEmpty(profile) ? config.MapperFactory.Create <T>() : config.MapperFactory.Create <T>(profile);
     bufferSize = mapper.Size;
 }