Commit Graph

472 Commits

Author SHA1 Message Date
Aman Bhardwaj 3b5065f283
Determine assembly, nuget versions based on git tags. (#366)
* Use MinVer for assembly, nuget versioning based on git tags.
* restricting nuget push on certain tags
2020-08-10 13:58:27 -07:00
Aman Bhardwaj 845a982648
update docs for arg changes in cli (#367) 2020-08-10 13:10:04 -07:00
Aman Bhardwaj 3b95e80ad4
Update dapr_common.props
Updating nuget package version for .10
2020-08-07 12:49:56 -07:00
Aman Bhardwaj bb3d7326cb
adding tests for DaprHttpInteractor in Actors, removing unused code. (#364) 2020-08-07 12:43:59 -07:00
Aman Bhardwaj 1cd4500a2d
Adding support for DAPR_API_TOKEN (#359)
* Adding support for DAPR_API_TOKEN

* adding retry back for this PR
2020-08-04 15:15:18 -07:00
Aman Bhardwaj b6329539bc
Remove retry options from state apis. (#361)
* Removing retry options for state apis.

* getting latest proto from dapr/dapr
2020-08-04 14:32:16 -07:00
Christian Kaps fdf17b7dbb
Use protobuf packaging for the Any type (#358)
* Use protobuf packaging for the Any type

This pull request implements two converters which help with the type conversion between arbitrary types and the protobuf `Any` type. The C# protobuf library provides a mechanism to pack or unpack protobuf messages to `Any`. It provides the methods `Any.Pack` and `Any.Unpack` to serialize/deserialize messages based on `Google.Protobuf.IMessage`. For types that are not based on `Google.Protobuf.IMessage`, the existing JSON serialization/deserialization will be used.

I've also cleaned the existing codebase a little bit.

Fixes #268

* Fix suggested changes
2020-08-03 10:15:23 -07:00
wdjhu ff0ead390a
Improved Getting started with Actors document (#319)
* added missing dapr port parameter
added version number to 'add package' calls

* Calculator Sample

* Revert "Calculator Sample"

This reverts commit ec4b7af03b.

* add missing hyphen on port param

Co-authored-by: Garret Magin <garretm@microsoft.com>

* removed dll from `dotnet run` call

* updated version to `0.9.0-preview01`

* added note to use latest nuget version

Co-authored-by: Nico Meisenzahl <nico@meisenzahl.org>
Co-authored-by: André Ratzenberger <andre.ratzenberger@whiteduck.de>
Co-authored-by: Garret Magin <garretm@microsoft.com>
2020-08-03 08:58:54 -07:00
Aman Bhardwaj 493cd3fd73
adding a note about IIS express. (#355) 2020-07-31 20:00:22 -07:00
Tom Kerkhove 26651756d0
Fix typo in Actor docs (#357) 2020-07-31 17:14:18 -07:00
Tom Kerkhove c1b8c5d14c
Improve formatting (#352) 2020-07-30 11:07:35 -07:00
Leon Mai 1974ab36a8
Remove secret store extension from building (#348)
* Remove secret store extension from building

* Remove code

Co-authored-by: LM <lemai>
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-07-25 09:22:36 -07:00
Christian Kaps 5b246c8665
Include the appcallback.proto into the Dapr.Client package (#349)
* Include the appcallback.proto into the Dapr.Client package

To implement service invocation for a gRPC API, a user must implement the AppCallback service on the callee site. Currently this must be done by integrating the `appcallpack.proto` file as also the depending `common.proto` file into the gRPC service application. The `Dapr.Client` package contains already the same `common.proto` file to generate the client classes. This results in a CS0433 error, because the `Dapr.Client` package and the generated AppCallback service will contain a `Dapr.Client.Autogen.Grpc.v1` namespace with the exact same classes.

This pull requests integrates the `appcallpack.proto` into the client package. With this fix the user does not need to integrate the proto files by itself.

See: https://gitter.im/Dapr/community?at=5f14b7e98a9a0a08cbab5d53

* Remove specific names
2020-07-25 09:20:34 -07:00
Aman Bhardwaj fcd14b278c
tracking next release 2020-07-14 17:57:56 -07:00
Aman Bhardwaj 0a6dd4b538
Updated dotnet sdk in github actions (#338)
* Updated dotet sdk to 3.1.301 (removing build error workaround)
Generate .snupkg
Upload packages for tags to nuget.org
Enable sourcelink
Enable Deterministic build for github actions

* using 3.1.300

* adding build workaround

* Using dotner core sdk 3.1.301
2020-06-23 13:35:07 -07:00
Lars Gyrup Brink Nielsen e8ffceacb9
docs: correct actor method names in get started guide (#335)
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-06-15 12:32:25 -07:00
Lars Gyrup Brink Nielsen 9f7b2591b7
docs: fix InvokeAsync example in get started guide (#333)
Add generic request type to `InvokeAsync` command.

Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-06-15 12:12:57 -07:00
Lars Gyrup Brink Nielsen 7d2efdb1da
docs: correct typo (#331)
serialziable -> serializable
2020-06-15 12:10:33 -07:00
Leon Mai 4afe79fa1a
cli -p is now -d (#325)
Co-authored-by: LM <lemai>
2020-06-08 13:45:23 -07:00
Garret Magin 317aa4ff99
Update documentation to specify framework version on creation (#324)
- Explicitly specify netcoreapp3.1 on project creation
- Remove documentation section on updating to netcoreapp3.0 which is obsolte
- Fix missing using statements in MyActoreService code updates
2020-06-08 12:00:33 -07:00
Aman Bhardwaj 02779c4ec2
Updating version to 0.8.0 2020-06-04 13:25:03 -07:00
Leon Mai 041a2d1255
Update to sdk for changes in proto for bidirectional binding in runtime (#320)
* Update proto for bidirectional binding in runtime

* move arg check

Co-authored-by: LM <lemai>
2020-06-03 11:10:08 -07:00
Sander Molenkamp f3b5c7db81
Update client to latest proto files (#315)
* Update client to latest proto files

* Update PublishEventApiTest.cs

Merge conflict.

Co-authored-by: Leon Mai <lemai@microsoft.com>
2020-05-29 10:35:53 -07:00
Leon Mai ad4095c308
pub/sub - rename refs to 'content' to 'data' (#318)
Co-authored-by: LM <lemai>
2020-05-28 21:09:51 -07:00
Leon Mai 6c27126223
#312 - make changes corresponding to change in dapr runtime. The run… (#313)
* #312 - make changes corresponding to change in dapr runtime.  The runtime will no longer send an activate message.  The SDK should 'activate' an actor anytime it receives an actor method call

* spaces

* remove comment'

Co-authored-by: LM <lemai>
2020-05-16 17:06:49 -07:00
Aman Bhardwaj e773243487
Returning routes for pubsub from aspnetcore integration. (#309)
* Returning routes for pubsub from aspnetcore integration.

* adding ref to System.IO.Pipelines

* updating tests

* not using RawText, using segments in route.

* fixing tests

* Logging a warning for routes with parameters

* Using ILoggerFactory
2020-05-14 15:16:55 -07:00
Furkan Duman 75cf0b5278
Fix RegisterReminder, RegisterTimer with correct type name (#311) 2020-05-13 10:33:09 -07:00
Aman Bhardwaj b576553462
Using EndpointRouteBuilder and correcting the order of middleware chaining (#307)
* Using EndpointRputeBuilder and correcting the order of middleware chaining.

* Moving app.UseRouting after next(app)

* Using endpoints.MapHealthChecks to allow for extensibility on health checks
2020-05-12 15:43:16 -07:00
Leon Mai 465c960b79
httpextension should use post if not specified (#303)
* httpextension should use post if not specified

* make constant

Co-authored-by: LM <lemai>
2020-05-06 17:45:56 -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
Yaron Schneider a65845c6c2
Update README.md (#286)
Update to correct number of sln files.
2020-04-16 10:08:04 -07:00
Jérôme Piquot e797d2f941
Add an ActorProxy create method with a parameterized actor interface … (#285)
* Add an ActorProxy create method with a parameterized actor interface type.

* Verify that the interface implements IActor.

* fix error label
2020-04-15 12:59:15 -07:00
Jérôme Piquot 767fba5675
Initializing ActorId with an empty string should throw an exception (#279)
* fix issue 277. Initializing ActorId with an empty string should throw an exception.

* add whitespace check to actorid constructor
2020-04-05 12:02:03 -07:00
Leon Mai d8b5f77a81
Document + example for ConfigureActorSettings() (#276)
* #275 document + example for ConfigureActorSettings()

* make bold

Co-authored-by: LM <lemai>
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-03-31 15:46:16 -07:00
Aman Bhardwaj 917c9eaa38
Updating nuget pkg version to prepare for 0.7.0 release 2020-03-31 15:08:50 -07:00
Aman Bhardwaj d8157b9f5b
Consuming proto files for 0.6.0 dapr runtime and updating DaprClient for it. (#274) 2020-03-30 19:37:20 -07:00
Leon Mai 20fabb2141
Support more actor configuration (#269)
* 219 Support the granular Actor config such as actor idle time

* cleanup

* cr

* cr

* refactor

* remove now dead code

* Move setter into properties

Co-authored-by: LM <lemai>
2020-03-30 13:30:00 -07:00
Aman Bhardwaj 5732c7220c
Revert the workaround added to work with mTLS enabled grpc endpoint. (#270)
* Revert "Allows the DaprClient to work with mTLS enabled grpc endpoint when https endpoint is provided (#263)"

This reverts commit e0a3d9302a.

* exposes option to provide grpcchannel options to allow more customization by users.

* removing extra spaces
2020-03-30 10:43:11 -07:00
Aman Bhardwaj 1b44cfea3d
Add health api (#267) 2020-03-26 11:59:43 -07:00
Aman Bhardwaj e0a3d9302a
Allows the DaprClient to work with mTLS enabled grpc endpoint when https endpoint is provided (#263) 2020-03-21 13:08:39 -07:00
Carlos Mendible f36b52107f
Secret Store configuration provider implementation for Microsoft.Extensions.Configuration (#238)
* Implementing Dapr Secret Store configuration provider

* Improved exception message

Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-03-18 10:43:19 -07:00
Aman Bhardwaj ae22eb28a5
changing default dapr grpc port (#258) 2020-03-17 19:38:47 -07:00
Aman Bhardwaj 54df7834a7
Using dotnet sdk 3.1.102 2020-03-14 20:21:47 -07:00
Aman Bhardwaj 9f34518c4f
Adding ref. to System.IO.Pipelines explicitly to work around build issue with .netcore sdk 3.1.102 (#250)
* Adding ref. to System.IO.Pipelines explicitly to work around build issue with .netcore sdk 3.1.102

* Adding comment
2020-03-14 10:12:40 -07:00
wanton7 49080d82aa
Throw exception if actor method has more than one parameter when called via http. (#252) 2020-03-13 13:19:03 -07:00