Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/amalia #10

Open
wants to merge 2 commits into
base: dev/amalia
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# fabric-chaincode-csharp
Hyperledger Fabric Contract and Chaincode implementation for CSharp (C#) https://wiki.hyperledger.org/display/fabric

The fabric-chaincode-csharp has only been tested only in wsl/linux using [dotnet 6](https://learn.microsoft.com/en-us/dotnet/core/install/linux)

## Quick Testing
## 🚀 Quick Testing

Run the following instructions in terminal:
### Export the environment variables

This library has only been tested only in linux with dotnet 6
```bash
dotnet build
cd fabric-chaincode-csharp/
```

### Export the environment variables

Export the chaincode package ID, ex:
Export your chaincode package ID, ex:
```bash
export CHAINCODE_ID=basic_1.0:f3e2ca5115bba71aa2fd16e35722b420cb29c42594f0fdd6814daedbc2130b80
```
Expand All @@ -21,7 +22,13 @@ Set the chaincode server address:
export CHAINCODE_SERVER_ADDRESS=127.0.0.1:9999
```

### And start the chaincode service:
### Build library

```bash
dotnet build
```

### Start chaincode service:
```bash
dotnet run
```
18 changes: 10 additions & 8 deletions doc/deployment.md → doc/grpc.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## 🚀 Deployment
# gRPC in csharp

### Overview
## Overview
This document explains how to generate gRPC code for C# from .proto files.
For more detail consult [gRPC Documentation](https://lisafc.github.io/grpc.github.io/docs/quickstart/csharp.html)
### DOC dev
## DOC dev

#### Generate gRPC code
### Generate gRPC code
The Grpc.Tools NuGet package contains the protoc and protobuf C# plugin binaries you will need to generate the code.

##### Obtaining the Grpc.Tools NuGet package
#### Obtaining the Grpc.Tools NuGet package

Using Visual Studio
This example project already depends on the Grpc.Tools.1.8.x NuGet package, so it should be included in `examples/csharp/helloworld/packages` when the Greeter.sln solution is built from your IDE, or when you restore packages via /path/to/nuget restore on the command line.
Expand Down Expand Up @@ -51,6 +51,8 @@ Running the appropriate command for your OS regenerates the following files in t
-- an abstract class Greeter.GreeterBase to inherit from when defining Greeter service implementations
-- a class Greeter.GreeterClient that can be used to access remote Greeter instances

https://github.com/grpc/grpc-dotnet/blob/master/examples
https://binodmahto.medium.com/streaming-with-grpc-on-net-34a57be520a1
https://www.mail-archive.com/[email protected]/msg05152.html
# links

- https://github.com/grpc/grpc-dotnet/blob/master/examples
- https://binodmahto.medium.com/streaming-with-grpc-on-net-34a57be520a1
- https://www.mail-archive.com/[email protected]/msg05152.html