public ByteMapperInputFormatter(ByteMapperFormatterConfig config) { this.config = config; foreach (var mediaType in config.SupportedMediaTypes) { SupportedMediaTypes.Add(mediaType); } }
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); }
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; }
public SingleOutputWriter(ByteMapperFormatterConfig config, string profile) { mapper = String.IsNullOrEmpty(profile) ? config.MapperFactory.Create <T>() : config.MapperFactory.Create <T>(profile); bufferSize = mapper.Size; }