Commit Graph

67 Commits

Author SHA1 Message Date
vinayada1 80f2319fe4
Handle rpc exception thrown for operation cancellation (#455)
* Handle cancelled cancellation token

* add UTs

* add secrets UT

* fix review comments

* invoke and await in one call

* fix await

* Add test for multiple calls to UseActors (#459)

Fixes: #411

The bug was actually addressed in PR #453 - this change adds a test that
verifies that we actually fixed it.

Co-authored-by: vinayada1 <28875764+vinayada1@users.noreply.github.com>

* use grpcChannelOptions ThrowOperationCanceledOnCancellation

* Add doc

* add link to doc

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2020-11-19 11:22:33 -08:00
Dasith Wijesiriwardena f6f434d6e6
Fluent methods for creating and manipulating HTTPExtension (#473)
* HTTPExtension fluent methods

* add tests

Co-authored-by: vinayada1 <28875764+vinayada1@users.noreply.github.com>
2020-11-17 12:58:02 -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
vinayada1 2d83efb4c9
grpc exception handling sample (#427)
* rpc exception handling
2020-10-14 10:15:42 -07:00
Ryan Nowak 51ab7ff181 Stop generating docs in samples and tests
Removes generation of documentation files for samples and tests. This is
a vestige from using the older Stylecop tool in this repo, which needs
the doc files to inspect.

The deleterious effect of this is getting warnings about missing
documentation on samples, and forcing contributors and maintainers to
write nonsense comments to workaround the warning.

Also removed references to stylecop, since we no longer use it.
2020-10-10 19:04:00 -07:00
vinayada1 a55a2cdd08
remove some debug statements from sample (#404) 2020-09-28 13:52:38 -07:00
Edwin van Wijk 55e168fac3
Add ability to specify default DaprClient options to AddDapr (#394)
* Add fix for issue 390

* Move JsonSerializer defaults to DaprClientBuilder ctor

* Update samples to reflect changes

* Update unit-tests to reflect latest changes

* Remove obsolete using statements

* Change internal fields to internal properties

* Change internal fields to internal properties
2020-09-24 10:36:47 -07:00
vinayada1 e93357cb9d
State Transaction API changes (#385)
* State Transaction API changes
* Add the optional fields as per API reference
* Fix review comments
* Added transactional state api to sample
2020-09-17 16:12:50 -07:00
Leon Mai 11f6ea45e1
Multi pubsub (#374)
* Prepping for multi pubsub

* Add pubsub name, some cleanup

* multi pubsub changes

Co-authored-by: Aman Bhardwaj <amanbha@microsoft.com>
Co-authored-by: LM <lemai>
2020-08-17 13:58:50 -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
Leon Mai 4afe79fa1a
cli -p is now -d (#325)
Co-authored-by: LM <lemai>
2020-06-08 13:45:23 -07:00
Leon Mai f138d75192
Update readme for api changes (#296)
Co-authored-by: LM <lemai>
2020-05-01 13:38:44 -07:00
Leon Mai 44ca6496d8
Move to new invoke proto, specify contenttype in response to the dapr… (#295)
* Move to new invoke proto, specify contenttype in response to the dapr/config message, clarify sample

* Update for additional proto changes

* cr

Co-authored-by: LM <lemai>
2020-04-30 11:47:29 -07:00
ArieJones c73afa9882
Update to Readme.md (#293)
Fixing slight spelling issue
2020-04-27 19:05:26 -07:00
Aman Bhardwaj 3cf3f702fe
Small Renaming in samples (#291) 2020-04-23 17:12:32 -07:00
Damir Dobric 3875995461
Added new samples in existing project. (#284)
* Added invoke example for RoutingSample.

* Added .NET samples for Service Invokation vis POST, GET and Events.

* Removed unused code.

* comments changed

* Removed obsolete method InvokeMethodOnHttpServiceAsync

* Code samples simplified

* Added curl for Linux and MacOS

Co-authored-by: Damir Dobric <ddobric@daenet.com>
2020-04-23 16:45:01 -07:00
Steven Knox 4fcc0ae8d1
Add VSCode REST http.sample files (#287)
* Add VSCode REST http.sample files

* Add sample.http usage to docs
2020-04-20 10:18:46 -07:00
Aman Bhardwaj 49f4dc1582
Updating samples readme 2020-03-13 09:55:45 -07:00
Aman Bhardwaj 2ecb92d746
Updating client sample readme 2020-03-13 09:55:15 -07:00
pruthvidhodda f3410b83b4
Fix broken link to DaprClient sample (#248) 2020-03-13 08:31:55 -07:00
Aman Bhardwaj 8979e9f5ac
Updating .netcore version requirement 2020-03-12 16:46:32 -07:00
Aman Bhardwaj 51fc48fb74
Adding & enhancing client apis over gRPC (#244)
* adding IDAprClient interface

* Adding DaprClientBuilder and adding methods for Publish

* updating the method name for publish

* Adding unit tests for publishevent api

* Removing individual clients for publish

* Renaming base class to DaprClient and implementation calss to DparClientGrpc

* Moving State api to grpc and adding helpers to unittest grpc calls.

* More DaprClient logic

* metadata, etag, options, etc are optional

* Revert "metadata, etag, options, etc are optional"

This reverts commit ea5dc12c5d.

* Default params, 2 new Try- methods, overload refactor for InvokeMethodAsync

* Move some classes/enums to different files.  Documentation

* Code refactor and changing tests to use grpc

* Adding tests with state options

* Adding test for getting etag and state

* More refactoring and adding INvokeBinding test

* Fixing tests and tidying up things.

* Updating solutions for renamed project

* Updating projects for rename.

* Oneclient secret (#245)

* ADding Secret Apis

* Using Task for secret

* Format (#242)

* Updating samples.slm

* awaint the call to grpc in common method so that common error handling can be done there.

* Addressing review comments

* fixing test.sln

* updating prod.sln

* Addressing review comments from James.

* Add doc and example for method invocation on http app

* Updating arg validation.

* Updating example.

Co-authored-by: LM <lemai>
Co-authored-by: Carlos Mendible <cmendible@gmail.com>
2020-03-09 20:52:12 -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
Aman Bhardwaj f12519233e
Removing extra isntructions from grpcclient readme 2020-02-12 09:51:44 -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
Shalabh Mohan Shrivastava 5b8a426e7d
Add support in dotnet client sdk to support multi state store support (#207)
* Including state Store name in the APIs to support multi state store scenario in SDK

* correcting the typo in the comment.

* Respective Changes to the tests

* Changes in StateAttribute and Binder classes to support state store name

* Changes in StateEntryModelBinderTests

* StoreName changes in the Integration test app

* fixing build issues

* Fixing integration tests

* Addressing review comments.

* Addressing review comments

* Updating samples to use correct state store name as generated by dapr cli.

Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-02-06 09:06:21 -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
Shalabh Mohan Shrivastava 5a467bbfb8
Updating new proto files from dapr repo and fixing the gRPC sample (#205)
* Placing new proto file from dapr repo, generated from multistate store change

* Resolving code review comments - fixing the sample code.

Tested the sample with the changes.
2020-01-19 14:42:44 -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
Mehmet Tüken c10e772613 Grpc from proto (#154)
* remove generated protoc class.

* adding protos files and update project files.

* update Grpc.Net.Client to 2.25.0

* Grpc.Net.Client and Grpc.Tools making private assets.
Bump Google.Protobuf 3.10.0 to 3.11.2.
2019-12-14 14:02:18 -08:00
Aman Bhardwaj bead12b1d8 Build for net core 3.1 2019-12-13 20:31:08 -08:00
Aman Bhardwaj f10155a1d3
Removing an extra quote from docs. 2019-12-10 09:09:09 -08:00
Aman Bhardwaj 504ee8fb9c
Updating aspnetcore sample docs to include commands for windows (#181) 2019-12-06 17:03:37 -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
Greg Ingram c48a3c814f Capitalize Dapr throughout comments (#161) 2019-11-18 17:35:32 -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