Exemplo n.º 1
0
        public async Task <WebThreeState> Handle
        (
            MintNftOfTypeClientAction aMintNftOfTypeSharedRequest,
            CancellationToken aCancellationToken
        )
        {
            var aMintNftRequest = new MintNftOfTypeServiceRequest {
                MintNftId           = aMintNftOfTypeSharedRequest.MintNftId,
                ImmutableDataString = aMintNftOfTypeSharedRequest.ImmutableDataString,
                MutableDataString   = aMintNftOfTypeSharedRequest.MutableDataString
            };

            MintNftOfTypeServiceResponse response = await Mediator.Send(aMintNftRequest);

            return(new WebThreeState
            {
                MintingTransactionReceipt = response.mintingTransactionReceipt
            });
        }
        public async Task <MintNftOfTypeSharedResponse> Handle
        (
            MintNftOfTypeSharedRequest aMintNftOfTypeSharedRequest,
            CancellationToken aCancellationToken
        )
        {
            var aMintNftRequest = new MintNftOfTypeServiceRequest {
                MintNftId           = aMintNftOfTypeSharedRequest.MintNftId,
                ImmutableDataString = aMintNftOfTypeSharedRequest.ImmutableDataString,
                MutableDataString   = aMintNftOfTypeSharedRequest.MutableDataString
            };

            MintNftOfTypeServiceResponse response = await Mediator.Send(aMintNftRequest);

            return(new MintNftOfTypeSharedResponse
            {
                TransactionHash = response.TransactionHash,
                TokenId = response.TokenId,
                GasUsed = response.GasUsed
            });
        }