public ParcelApplication(IParcelProcessor parcelProcessor,
                          IDeserialiser deserialiser,
                          IFileSystem fileSystem)
 {
     _parcelProcessor = parcelProcessor;
     _deserialiser    = deserialiser;
     _fileSystem      = fileSystem;
 }
 internal Task <T> SendAsync <T>(string operation, IDeserialiser deserialiser, params Field[] fields)
 {
     return(SendAsync(operation, fields, deserialiser.Deserialize <T>));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Construct a new DataAccess
 /// </summary>
 /// <param name="configLocation"> Location of the config file </param>
 /// <param name="deserialiser"> Deserialiser to deserialise the config file </param>
 public DataAccess(string configLocation, IDeserialiser deserialiser)
 {
     config = deserialiser.DeserialiseFile <Config>(configLocation);
 }