コード例 #1
0
 public ParcelApplication(IParcelProcessor parcelProcessor,
                          IDeserialiser deserialiser,
                          IFileSystem fileSystem)
 {
     _parcelProcessor = parcelProcessor;
     _deserialiser    = deserialiser;
     _fileSystem      = fileSystem;
 }
コード例 #2
0
 internal Task <T> SendAsync <T>(string operation, IDeserialiser deserialiser, params Field[] fields)
 {
     return(SendAsync(operation, fields, deserialiser.Deserialize <T>));
 }
コード例 #3
0
ファイル: DataAccess.cs プロジェクト: jacob-enon/SnippetGUI
 /// <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);
 }