Esempio n. 1
0
        public static TxBuild ToDomain(this TxBuildEntity entity)
        {
            var domain = new TxBuild
            {
                OperationId = entity.OperationId,
                Timestamp   = entity.Timestamp,
                XdrBase64   = entity.XdrBase64
            };

            return(domain);
        }
Esempio n. 2
0
        public async Task AddAsync(TxBuild build)
        {
            var entity = new TxBuildEntity
            {
                PartitionKey = GetPartitionKey(),
                RowKey       = GetRowKey(build.OperationId),
                Timestamp    = build.Timestamp,
                XdrBase64    = build.XdrBase64
            };

            await _table.InsertAsync(entity);
        }
Esempio n. 3
0
        public static TxBuildEntity ToEntity(this TxBuild domain)
        {
            var rowKey = TableKeyHelper.GetRowKey(domain.OperationId);
            var entity = new TxBuildEntity
            {
                PartitionKey = TableKeyHelper.GetHashedRowKey(rowKey),
                RowKey       = rowKey,
                Timestamp    = domain.Timestamp,
                XdrBase64    = domain.XdrBase64
            };

            return(entity);
        }