Chronological progress comments #6
Replies: 7 comments 6 replies
-
Great! I have been swamped with work, so I hope to contribute a bunch this weekend! |
Beta Was this translation helpful? Give feedback.
-
5/7/22 |
Beta Was this translation helpful? Give feedback.
-
After reviewing my While re-scaffolding the gRPC API, I have implemented a common Data library (N-Tier Service Design / N-Tier Application Design), where I have located the common Protos, these can be then referenced in the projects with a simple modification which I have illustrated in the project files. I will also explain how it works below. You can also check out this project for a simple example (https://github.com/grpc/grpc-dotnet/tree/master/examples/Liber) See the following project layout: Be sure to update the The Proto files live inside the Data Layer of the application, and are consumed by the Services in the API Project, to include them in the API Project (or any other), simply add the following: Now all referenced Protos may be kept in a single location for consumption throughout the application :D |
Beta Was this translation helpful? Give feedback.
-
5/7/22 Mainly it 1) gives you a fairly simple framework to write your own commands with, and 2) shows the general format of how to code the console app for testing your service ops. The only thing of major difference you will have to do with your code is use post rather than get as does weather forecast. Please let me know if you have any questions or concerns. As I showed above. Then start the console and enter the UI command 'weather ttt 1 1' and it should run OK. At least it did for me. I have submitted a PR for this code. So once that is approved give it a try and let me know if it works for you, or needs fixing. I will be doing other things for the rest of the day, but will check my email today and tomorrow so as to prevent anyone from getting stuck. |
Beta Was this translation helpful? Give feedback.
-
See branch I have completed a working example of a ASP.NET MVC Website consuming a gRPC Service via Dapr with a shared common Proto. |
Beta Was this translation helpful? Give feedback.
-
I have began a Shopping Service example using Entity Framework (with MariaDb), and using the Redis State Store, I thought this would be a nice addition. See I thought a more in depth example past the Greeter service would be helpful. What do you think? |
Beta Was this translation helpful? Give feedback.
-
5/13/22 Did a code walk though, plus ran the grpc greeter service and the MVC web app. Found bugs. Documented all of that in the comment section of the PR. Only a few minor issues remain. |
Beta Was this translation helpful? Give feedback.
-
5/5/22 1900 EDT. I am adding the WebAPI service, WebAPIAhttp. Just the standard VS template with no changes.
@adamreed90 @paulgyro
Here are the settings I used in the VS WebAPI project setup. Note NO SECURITY!
5/5/2022 1952. I have not yet commited my changes, but the WebAPIAhttp runs OK on my local dev system.
Here is how to run it on yours, and use a browser to verify it operates:
How to Run the WebAPIAhttp.
a) It should run and say it is listening on http://localhost:5129/
http://localhost:5129/WeatherForecast
a) This should display the weather forecast -- Sunny days ahead!
a) Then you can set some breakpoints, say in the controller, to see what there is to see.
1955 I will commit it now and submit a PR. 2005 Done. Ready for WebAPI development.
2015 Checked git and my system to make sure the PR was OK and my merge happened OK. Now the master branch is completely up to date and ready to go. I'm done for the night.
Beta Was this translation helpful? Give feedback.
All reactions