项目作者: maxpiva

项目描述 :
.NET port of fabric-chaincode-java
高级语言: C#
项目地址: git://github.com/maxpiva/fabric-chaincode-net.git
创建时间: 2018-06-01T18:20:33Z
项目社区:https://github.com/maxpiva/fabric-chaincode-net

开源协议:Apache License 2.0

下载


fabric-chaincode-net

Build status

v1.4

Direct .NET port from fabric-chaincode-java

Alpha

  • All unit test passing, including mock tests.
  • Full Async Support to the bone, but Sync Methods are supported for easy porting.

Need to figure out how to integrate this in fabric
and then integrating the .net chaincode source and/or compiled uploads into .NET SDK

Help is appreciated since i’m not proficient in GO language

TidBits

  • Users can inherit ChaincodeBaseAsync for async implementations or ChaincodeBase for sync ones.
  • Users can inherit ChaincodeBaseMapperAsync or ChaincodeBaseMapper for automapping, you only need to implements the functions with the format:

    Response FunctionName(IChaincodeStub stub) or

    Task\ FunctionNameAsync(IChaincodeStub stub, CancellationToken token) in case of async usage.

  • Added FunctionName attribute for the above defined methods. in case your implementation name differs from the chaincode function.
  • C# 8 is required. Since it uses new C# 8 IAsyncEnumerable

TODO:

  • Examples
  • Docker builds