Пример #1
0
        public static TxBuild ToDomain(this TxBuildEntity entity)
        {
            var domain = new TxBuild
            {
                OperationId = entity.OperationId,
                Timestamp   = entity.Timestamp,
                XdrBase64   = entity.XdrBase64
            };

            return(domain);
        }
Пример #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);
        }
Пример #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);
        }