Commit Graph

715 Commits

Author SHA1 Message Date
Marcos Candeia a57375f343
Upgrade grpc.tools version to 2.47.0 for supporting arm64 architecture (#920)
* Upgrade grpc.tools version to 2.47.0 for supporting arm64 architecture

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>

* Upgrade Grpc.* packages to version 2.47.0

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
2022-08-10 12:43:50 -07:00
Marcos Candeia 815d5030a8
FIX Allow actor healthz endpoint are now always AllowAnonymous (#923)
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
2022-08-10 12:31:40 -07:00
halspang 0c4a3362da
Update Dapr and CLI to 1.8 (#893)
Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-08-09 16:47:47 -07:00
halspang 8bc7e90194
Add Actor Reminder/Timer TTL support (#912)
Add Actor Reminder/Timer TTL support

This commit adds the TTL field to Actor reminders/timers. This allows
reminders and timers to expire after a given TimeSpan instead of
having to be manually deleted.

https://github.com/dapr/dotnet-sdk/issues/788

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-08-03 11:56:53 -07:00
saber-wang e58b1de56a
Fix the problem of determining whether there is a MetadataSeparator error (#900)
* add  original topic metadata support
Signed-off-by: saberwang <saberwang@hotmail.com>

* Add topicmetadata sample
Signed-off-by: saberwang <saberwang@hotmail.com>

* fix: v2 route metadata acquisition error
Signed-off-by: saberwang <saberwang@hotmail.com>

* feat:  Support setting metadata separator
Signed-off-by: saberwang <saberwang@hotmail.com>

* chore: Note modification
Signed-off-by: saberwang <saberwang@hotmail.com>

* style:
Signed-off-by: saberwang <saberwang@hotmail.com>

* commit
Signed-off-by: saberwang <saberwang@hotmail.com>

* fix: Whether there is a problem of MetadataSeparator judgment error
Signed-off-by: saberwang <saberwang@hotmail.com>

* TopicAttribute.Metadataseparator default should be null
Signed-off-by: saberwang <saberwang@hotmail.com>

* formatting code
Signed-off-by: saberwang <saberwang@hotmail.com>

Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2022-07-20 08:32:33 -07:00
halspang d061164ec8
Add client docs for Configuration Subscribe API (#895)
Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-07-05 16:17:45 -07:00
amulyavarote 016545ac0d
Added dotnet methods for Distributed Lock API (#886)
* Added dotnet methods for Distributed Lock API

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Changes based on the review comments

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Changes in examples to make them real world - based on the PR review

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Fixed application log statements

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Changes to implement IDisposable

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Changes based on the review comments

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Added a sample test case for TryLockResponse

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Changes based on the review comments - 2

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Reworking the DistributedLock example

Signed-off-by: Hal Spang <halspang@microsoft.com>

Co-authored-by: Hal Spang <halspang@microsoft.com>
2022-06-29 10:23:37 -07:00
saber-wang 927daa48eb
add original topic metadata support (#876)
* add  original topic metadata support
Signed-off-by: saberwang <saberwang@hotmail.com>

* Add topicmetadata sample
Signed-off-by: saberwang <saberwang@hotmail.com>
2022-06-21 09:49:15 -07:00
halspang a4af2a4567
Add Fossa scan to the CI workflow (#889)
https://github.com/dapr/dotnet-sdk/issues/843

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-06-09 14:47:04 -07:00
halspang e4236c4c54
Add support for per type actor configuration (#870)
This commit allows different actor types to provide their own
configurations instead of relying on the top-level values. Any
value defined in them will be used instead of the top-level.
Anything that is left out will use the top-level or default if
it is undefined.

https://github.com/dapr/dotnet-sdk/issues/857

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-05-26 14:47:46 -07:00
halspang cda60cb382
Add Subscribe/Unsubscribe API support (#848)
Add Subscribe/Unsubscribe API support

This commit adds support for both the subscribe and unsubscribe
APIs for Darp's Configuration building block. The configuration can
now be exposed through the AspNet builder pattern or by making the
request directly with the DaprClient.

https://github.com/dapr/dotnet-sdk/issues/822

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-05-26 14:43:34 -07:00
Tequila Sunset 0046507076
Allow publishing cloud events directly (#868)
Signed-off-by: Sun Zhongfeng <suraciii@outlook.com>

Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2022-05-20 14:51:18 -07:00
听雨声 26518321f2
Fix Adds DaprClient in Dapr.AspNetCore from AddSingleton to TryAddSingleton (#867)
Signed-off-by: zhenlei520 <wangzhenlei520@gmail.com>
2022-05-17 10:44:53 -07:00
Zhiqiang Li ce1315fbbe
WithTopic extension method add overload (#864)
WithTopic add enableRawPayload overload method

Signed-off-by: stulzq <stulzq@qq.com>

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2022-05-17 10:41:18 -07:00
halspang 291f73758d
Upgrade dapr/cli used in e2e test workflow (#863)
Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-04-25 08:54:42 -07:00
Jadyn 452ccad335
Fix App API token authentication (#836)
* Fix App API token authentication

Signed-off-by: Jadyn <jadyn.wong@live.com>

* Add e2e test for App API token authentication

Signed-off-by: Jadyn <jadyn.wong@live.com>

* Rename dapr api token

Signed-off-by: Jadyn <jadyn.wong@live.com>
2022-04-19 14:17:49 -07:00
Hannah Hunter bc4a52af91
typo fixes (#855)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2022-04-01 08:41:40 -07:00
halspang 3553899235
Update Google.Protobuf to 3.15 (#850)
Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-03-23 10:51:41 -07:00
halspang a6319dd4b6
Wait for sidecar in DaprSecretStoreConfiguration (#838)
The secret store configuration provider was trying to access Dapr
during the app startup. If the app started faster than Dapr, it would
get an error trying to access the secrets. This commit lets the
provider wait for the sidecar to come up before making any requests.
If the sidecar does not come up at all, we will still fail.

https://github.com/dapr/dotnet-sdk/issues/779

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-02-17 16:39:33 -08:00
Martin Björkström dca6106af7
Adds support for providing Actor type name during runtime. (#721)
* Adds support for providing Actor type name during runtime.

- Fixes #677

Signed-off-by: Martin Björkström <martin.bjorkstrom@gmail.com>

* Make ActorTypeInformation.TryGet(Type) and ActorTypeInformation.Get(Type) obsolete.

- Fix relevant code after obsoleting.

Signed-off-by: Martin Björkström <martin.bjorkstrom@gmail.com>
2022-02-15 11:01:45 -08:00
mumumi 52113a3fd2
Fix missing assignment (#824)
* Fix missing assignment

ActorHost.JsonSerializerOptions is always null.

Signed-off-by: mumumi <hjjixx@hotmail.com>

* Add test for custom json options

Signed-off-by: mumumi <hjjixx@hotmail.com>

Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2022-01-28 09:15:38 -08:00
halspang a8acdea23f
Include .NET 5 in all builds and check test status (#826)
Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-01-28 08:33:10 -08:00
halspang 8ba4234578
Update Parse Trx github action (#825)
Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-01-27 16:56:49 -08:00
halspang 7690e98663
Add .NET 6 build targets for tests (#823)
https://github.com/dapr/dotnet-sdk/issues/794

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-01-26 08:59:20 -08:00
Mark Fussell b47c63ac14
Merge pull request #821 from halspang/query_docs
Add client example for Query API (Alpha)
2022-01-24 11:17:17 -08:00
Hal Spang aab8c95dfb Add client example for Query API (Alpha)
This commit adds a client example for the Query API. It also
marks the Configuration API as alpha.

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-01-24 11:03:41 -08:00
halspang 20ef37382c
Add documentation for GetConfiguration API (#818)
https://github.com/dapr/docs/issues/2094

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-01-21 16:15:09 -08:00
amulyavarote 596d725785
Changed application port number for actors example (#816)
* Changed application port number for actors example

* Modified readme for actors example

* Update README.md

Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>

Co-authored-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
2022-01-20 16:01:01 -08:00
halspang 764b4d7674
Fix issue where state did not reset on actor error (#789)
When an actor call fails, it is imperative that the state is reset.
In the remoting path, we were catching the exception and returning
an error response instead of propagating the exception. Without this,
the error path was never triggered. This allowed for state from
failed requests to persist on subsequent requests.

https://github.com/dapr/dotnet-sdk/issues/762

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-01-13 09:01:31 -08:00
halspang d43de2b043
Add support for Query API (#810)
This commit adds methods to the DaprClient to call the new Query API.
Currently, a raw query string is provided to the API. The API is
still in the alpha stage which may cause shifts in how the API works.
This should not effect how the SDK exposes the call, but may change
the underlying semantics.

https://github.com/dapr/dotnet-sdk/issues/777

Signed-off-by: Hal Spang <halspang@microsoft.com>

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2022-01-12 17:50:06 -08:00
halspang f5169cbe5f
Add support for the GetConfiguration API (#812)
This commit adds support for the GetConfiguration API. This is an
alpha API and may be subject to change. This commit also does not
cover the Subscribe API for Configurations.

Included is a simple example showing the usage of the Configuration
API.

https://github.com/dapr/dotnet-sdk/issues/787

Signed-off-by: Hal Spang <halspang@microsoft.com>
2022-01-12 17:07:48 -08:00
Will edd6b3db74
Add DCO requirements and updated code of conduct (#808)
Issue reference: dapr/docs#2039

Signed-off-by: Will <william.wl.tsai@gmail.com>
2022-01-06 10:35:50 -08:00
Mark Fussell 2ffbb113e7 fixed link
Signed-off-by: Mark Fussell <markfussell@gmail.com>
2021-12-28 15:31:59 -08:00
Mark Fussell d60eaf1c0e
Merge pull request #781 from fjvela/fix-link-to-docker
Fix ref to self hosted with docker
2021-12-28 11:45:05 -08:00
Mark Fussell 1e563ad38e
Merge branch 'master' into fix-link-to-docker 2021-12-28 11:31:02 -08:00
Dmitry Shmulevich 0c9d6a45c8
replaced license headers (#802)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-10 13:39:06 -08:00
halspang 8a38c292a0
Update Dapr Protos (#801)
This commit includes the copied files from dapr/dapr. These are used
to generate the gRPC client. Included in the update are:
 - Configuration API
 - Query API

Signed-off-by: Hal Spang <halspang@microsoft.com>
2021-12-10 11:09:15 -08:00
Javier Vela a0b514a2cb
Merge branch 'master' into fix-link-to-docker 2021-11-17 19:45:58 +01:00
Javier Vela 4817b13b5d Fix ref to self hosted with docker 2021-11-16 16:16:29 +01:00
halspang cc1b097991
Allow multiple topics to call the same endpoint (#763)
* Allow multiple topics to call the same endpoint

Using the WithTopic builder pattern allows you to specify multiple
topics that route to a single endpoint. Given the topics are unique,
this should be a valid case.

This change allows for a single endpoint to bind to multiple topics.
Note that this can only be done via the EndpointBuilder and not the
TopicAttribute.

https://github.com/dapr/dotnet-sdk/issues/715

* Let TopicAttribute to be specified multiple times

The endpoint builder allowed for multiple WithTopic calls so the
attribute should match that behavior.
2021-10-26 13:42:28 -07:00
halspang f3258632f4
Add support for gRPC proxying (#755)
This commit adds a gRPC interceptor which adds the necessary
headers for gRPC proxying to outgoing requests. This will allow
custom gRPC services to be invoked through the Dapr sidecar.

https://github.com/dapr/dotnet-sdk/issues/741

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-10-19 14:08:29 -07:00
Whwlsfb a01a9d61b6
Fix StateManager can't get dapr-api-token header. (#768)
When "dapr_api_token" is specified in the environment variable, actor.statemanager cannot correctly set "dapr-api-token" in the request header。

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-10-19 13:34:59 -07:00
halspang 839acaf877
Fix FromTopic route binding error (#770)
https://github.com/dapr/dotnet-sdk/issues/706
2021-10-19 13:13:29 -07:00
Michael Robertson fc54f21d00
- Added null-conditional operator to StateEntryApplicationModelProvider.OnProvidersExecuted when checking BindingSource to prevent startup null reference exceptions in certain implementations. (#765)
- Added null check and throws unit tests for StateEntryApplicationModelProvider
2021-10-13 16:53:22 -07:00
Phil Kedy 75bdb8ce2f
Fixing falsely logged default subscription message (#761) 2021-10-04 15:40:53 -07:00
Federico Bridger 1acd372ae2
Fixing problem with IIS Express not allowing Applications to subscribe to events (#754)
Co-authored-by: Federico.Bridger <Federico.Bridger@endava.com>
2021-09-28 13:50:49 -07:00
Christophe GIGAX a23aebe669
Add unit tests for InvokeBinding method (#751)
Co-authored-by: Christophe Gigax <christophe.gigax@codit.eu>
Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-09-16 15:41:04 -07:00
鬼谷子 8e4b35e0b7
Fix preview 7 dapr config (#738)
* feat: support Minimal APIs

* feat: support minimal api add actor

* feat: actor support minimal API

* fix: preview 7 dapr config

* chore: remove unused namespace

* chore: rollback

* chore: remove preview 6 fix

* feat: add MapDaprConfigEndpoint test

* chore: remove comment

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-09-16 15:35:46 -07:00
halspang cee49bff92
Add an option to set Timeout for ActorProxy (#748)
* Add an option to set Timeout for ActorProxy

Actors, by there nature, may have to wait for a long period before
being allowed to execute. This could lead to long request times. The
default timeout for the HttpClient being used is fairly low. This
commit allows for the timeout to be set when constructing the
proxy.

https://github.com/dapr/dotnet-sdk/issues/728

* Removed extra constructor and e2e tests.
2021-09-08 12:06:07 -07:00
Phil Kedy aba49d1446
Adding match and priority to TopicAttribute for PubSub routing. (#746)
* Adding match and priority to TopicAttribute for PubSub routing.

* Restructuring call to dapr/subscribe

* Tweak
2021-09-01 14:50:42 -07:00