Ejemplo n.º 1
0
        public Task <byte[]> GetLocalAttachementData(long transactionId, int attachementKey, string name)
        {
            var path = Path.Combine(AttachementManager.GetAttachementPath(ChainId, ChainIndex, attachementKey), AttachementManager.GetAttachementFileName(transactionId, name));

            return(_storage.ReadFileBytesAsync(path));
        }
Ejemplo n.º 2
0
 public string GetLocalAttachementPath(long transactionId, int attachementKey, string name)
 {
     return(Path.Combine(_storage.Root.FullName, AttachementManager.GetAttachementPath(ChainId, ChainIndex, attachementKey), AttachementManager.GetAttachementFileName(transactionId, name)));
 }