Commit Graph

297 Commits

Author SHA1 Message Date
vinayada1 af75140c44
Merge branch 'master' into actorRandom 2020-10-15 14:16:40 -07:00
Nghia Tran 29af055cb1
Merge pull request #430 from tcnghia/no-set-env
Remove set-env due to CVE-2020-15228
2020-10-15 10:52:45 -07:00
Nghia Tran 0ac85274d4
Merge branch 'master' into no-set-env 2020-10-14 11:25:47 -07:00
vinayada1 90a1b04a60
Merge branch 'master' into actorRandom 2020-10-14 10:23:19 -07:00
vinayada1 2d83efb4c9
grpc exception handling sample (#427)
* rpc exception handling
2020-10-14 10:15:42 -07:00
Nghia Tran 63999da568 Remove set-env due to CVE-2020-15228
Fixes https://github.com/dapr/dotnet-sdk/issues/417
2020-10-13 18:45:45 -07:00
vinayada1 49f25f5555 use Guid to generate unique Actor id 2020-10-13 14:11:30 -07:00
Ryan Nowak 701244e367 Update requirements in readme to reflect reality
- remove references to specific VS versions (these will quickly become
  stale and can be confusing because VS wants you to live on the latest
  version).
- include mac/linux instructions
2020-10-10 19:04:00 -07:00
Ryan Nowak 36fc6be9af Document dotnet SDK requirements
This is a hint to tools (and the CLI) about what version of the SDK is
required to work with the repo. This is set up to be as flexible as
possible. 3.1.100 is what's in our instructions already and is the
minimum version usable (since we target .NET Core 3.1).
2020-10-10 19:04:00 -07:00
Ryan Nowak 45ced5613f Remove resource file boilerplate
This spooky XML boilerplate was needed on early versions of .NET Core,
but isn't required in modern versions (we require 3.1.1XX of the SDK
because we target .NET Core 3.1).
2020-10-10 19:04:00 -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
Ryan Nowak aa95b2ffe4 Workaround .NET SDK bug with pipelines package
This is a workaround for https://github.com/dotnet/sdk/issues/14019
which prevents the current prerelease dotnet SDK
`5.0.100-rc.1.20452.10` from successfully building the repo.

Users attempting to build with the bugged release will see a compiler
error related to the `System.IO.Pipelines` assembly.

The explicit reference to `System.IO.Pipelines` is harmless long term,
but can be removed when the underlying bug is fixed and shipped in a GA
release (likely 5.0.100 GA).
2020-10-09 11:53:55 -07:00
Young Bu Park 3bb6165096
Upgrade grpc to 2.32.0 (#413) 2020-10-07 10:35:57 -07:00
vinayada1 caac517d73
Fix github-release version (#407) (#408) 2020-09-30 15:27:02 -07:00
vinayada1 a55a2cdd08
remove some debug statements from sample (#404) 2020-09-28 13:52:38 -07:00
Edwin van Wijk b3aef53d79
Fix use of marker services in DI registration (#403)
* Fix for issue #390

* Fix unit-test naming

Co-authored-by: vinayada1 <28875764+vinayada1@users.noreply.github.com>
2020-09-28 10:24:45 -07:00
Mark Fussell 594021cbed
Create CODEOWNERS 2020-09-25 14:28:32 -07:00
Sander Molenkamp 100dbe9794
Send headers as metadata to sidecar (#397)
* Send headers as metadata to sidecar

* Add HTTP headers test

* Allow different kinds of dictionaries
2020-09-24 16:07:44 -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 bf0354bd39
Add metadata for get/delete state apis (#383)
Co-authored-by: LM <lemai>
2020-09-01 18:27:17 -07:00
vinayada1 20901cebf5
Test change for nuget push (#377) 2020-08-20 12:14:32 -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
Yaron Schneider 6671ab020c
Add bulk get to client (#372)
* Add bulk get to client

* change params, return type, class to struct

* change IList to IReadOnlyList, make parallelism nullable

* change GetBulkItem to BulkStateItem
2020-08-17 09:24:35 -07:00
Gokhan Altinoren aa52a5d6a2
Fixing an issue of a null reference exception where the model binder is checked against a null BindingSource (#371) 2020-08-17 08:57:48 -07:00
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