Commit Graph

31 Commits

Author SHA1 Message Date
Yongguang Zhu 1253cbdf71
Includes a gRPC sample (#382)
* add GrpcSample, GrpcClient; update DaprClient

* disable TLS for grpc server

* implement deposit and withdraw method for grpcsample

* implement event handler for deposit and withdraw

* edit readme for grpcsample

* improve readme

* fix @amanbha requested changes

* fix or improve readme @vinayada1 reviewed

* use parameter in DaprClient to switch invocation of routing or grpcsample service

* add separate editorconfig file into samples directory

* add license header into grpcsample

* fix TypeConverters  to use internal access modifier; remove useless code; fix Console to logger; fix typo; fix using statement location

* throw a exception when account is not found for BankingService Withdraw invocation

* remove TypeConverters dependence

* use config for rpc-exception argument

* fix comment of @vinayada1

* updated documentation for parameters usage

* fix additional comments from @vinayada1

* Update Readme.md

* fix DaprClient's compile error

Co-authored-by: Yongguang Zhu <Yongguang.Zhu@microsoft.com>
Co-authored-by: vinayada1 <28875764+vinayada1@users.noreply.github.com>
Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2020-12-02 17:52:43 -08:00
Ryan Nowak e95a5567f2
Implement dependency injection for Actors (#463)
* Implement dependency injection for Actors

Fixes: #171

This change allows Actors to accept dependency-injected services through
constructor parameters.

There are numerous breaking changes in this PR that are visible to user
code. In most cases these are simplifications.

For example the Actor base class accepted 3 constructor parameters,
which meant that every subclass (every actor type) also had 3 constructor
parameters. This isn't fun and becomes way less fun now that users can
add their own constructor parameters in a meaningful way.

As another example, we had multiple places where "runtime options" lived
that had different interaction patterns. Now there's a single options
type and you interactive with it through UseActors(...).

* address PR feedback

* React to API change
2020-12-01 10:15:08 -08:00
vinayada1 6ce5e319fd
fix docs (#475) 2020-11-13 14:02:01 -08:00
Carlos Mendible 3b1538be9f
Fix: --dapr-http-port param is now --port (#451)
Fixing command:  `--dapr-http-port` parameer is now `--port`

Co-authored-by: vinayada1 <28875764+vinayada1@users.noreply.github.com>
2020-10-29 14:20:02 -07:00
Aman Bhardwaj 845a982648
update docs for arg changes in cli (#367) 2020-08-10 13:10:04 -07:00
Aman Bhardwaj 493cd3fd73
adding a note about IIS express. (#355) 2020-07-31 20:00:22 -07:00
Aman Bhardwaj 7005e24624
REmoving dependency on Newtonsoft (#227) 2020-02-19 10:46:30 -08:00
Aman Bhardwaj ea51561f49
git gui, ading editor config and removing depenency on StyleCop.Analyzers (#228) 2020-02-18 13:21:12 -08:00
Aman Bhardwaj 50d8a496bc addressing review comments 2020-02-12 14:03:04 -08:00
Aman Bhardwaj 4186f5af6f Updating readme for Actor Sample to clarify client invocation. 2020-02-12 13:27:22 -08:00
pacodelacruz 114f1065ed
Update 'samples/Actor' to show Timer and Reminder functionality (#213)
* Updated samples/Actor to show Timer and Reminder functionality

* Updated ActorClient. Changed deregistration of TImer and Reminder at the end of the program

Co-authored-by: Leon Mai <lemai@microsoft.com>
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-02-06 14:53:14 -08:00
Aman Bhardwaj a5078a60c7
Using 127.0.0.1 instead of localhost. (#214)
* Using 127.0.0.1 instead of localhost.

* Updating usage in tests and samples, docs as well.
2020-02-05 12:32:41 -08:00
pacodelacruz 68f74e512c
Updated samples/actor/readme.me. Fixed minor issues. Updated to improve readibility and based on markdown practices. (#212) 2020-02-04 18:31:51 -08:00
Aman Bhardwaj 34835a0224
Build for net core 3.1 (#189) 2019-12-16 09:31:25 -08:00
Aman Bhardwaj 9a499176bf Revert "Build for net core 3.1"
This reverts commit bead12b1d8.
2019-12-15 09:59:08 -08:00
Aman Bhardwaj bead12b1d8 Build for net core 3.1 2019-12-13 20:31:08 -08:00
Ross McDermott 7875ef3da9 Fix spelling mistake (#169) 2019-11-21 18:17:26 -08:00
Greg Ingram 3a7a19c9b1 Edit JSON to uppercase (#168)
* Edit JSON to uppercase

* Updated a few more
2019-11-21 18:01:06 -08:00
Shalabh Mohan Shrivastava 836d959f0b
Making the application port change to 5000 in launch settings (#160) 2019-11-18 14:42:15 -08:00
Aman Bhardwaj 2a2ba8acbd
Updating the app port to 5001 2019-11-18 14:03:43 -08:00
Greg Ingram 07324ec059 Remove unneeded ToString methods (#157) 2019-11-18 09:45:35 -08:00
Shalabh Mohan Shrivastava d70ba80ead
Changing the application port to 5000
Changing the application port to 5000
2019-11-14 22:13:11 -08:00
Aman Bhardwaj d3c8eea13d
Making Main async and using Grpc.Net.Client (#145) 2019-11-04 19:32:24 -08:00
Aman Bhardwaj af3da0c518
Removing nuspec files for packing. (#139)
* Removing nuspec files for packing.

* adding symbols generation

* Adding solution files for samples, tests & sdk for better organization and targetted builds.
2019-10-27 18:20:54 -07:00
Aman Bhardwaj 353ba4d6cb
Updating sample which shows calls with remoting for methods which throw exception & call to emthod with no return and arg (#132) 2019-10-23 18:58:22 -07:00
Aman Bhardwaj 27f5d4d25b Fix sampels readme and repo readme to refer to code.sln. (#131) 2019-10-23 10:59:22 -07:00
Greg Ingram 3d2fbe8b25 Removed unused usings (#122) 2019-10-21 09:53:55 -07:00
Aman Bhardwaj 66107eab0b
ADding launchsettings.json to user port for local launch (#111) 2019-10-17 17:57:48 -07:00
Aman Bhardwaj e3446c5bd6
Update Program.cs 2019-10-17 17:11:37 -07:00
Aman Bhardwaj 7185c411e2
Escaping quotes correctly for json data for curl commands. 2019-10-16 19:21:35 -07:00
Aman Bhardwaj a9e3f78f1b
Add Actor sample. (#94)
* Adding a project with actor service and client.

* Updating the client code

* Adding an Actor sample.
2019-10-13 17:11:42 -07:00