Commit Graph

715 Commits

Author SHA1 Message Date
Whit Waldo 2e94bb1905
Added overload for DaprClient DI registration (#1289)
* Added overload for DaprClient DI registration allowing the consumer to easily use values from injected services (e.g. IConfiguration).

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added supporting unit test

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

---------

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
2024-06-25 12:30:18 -07:00
Manuel Menegazzo fba9dfd531
Removed non-existent project, correct path of the generator project. (#1297)
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
2024-06-05 15:31:41 -07:00
Manuel Menegazzo 190156f212
Fixed badge broken links (#1290)
* Fixed badge broken links

Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>

* Update README.md

Co-authored-by: Marc Duiker <marcduiker@users.noreply.github.com>
Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>

---------

Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>
Co-authored-by: Marc Duiker <marcduiker@users.noreply.github.com>
2024-05-21 21:25:19 -07:00
Manuel Menegazzo 23c484e1f0
restored missing title in readme (#1286)
Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>
2024-05-14 10:08:06 -07:00
Manuel Menegazzo fd71812dc5
Update README.md (#1284)
Signed-off-by: Manuel Menegazzo <65919883+m3nax@users.noreply.github.com>
2024-05-13 09:41:46 -07:00
Carlos Mendible ba1341510b
Updated .github/holopin.yml. Fixes #1270 (#1276)
Signed-off-by: Carlos Mendible <266546+cmendible@users.noreply.github.com>
2024-04-23 08:53:51 -07:00
James Thompson ad3350f70e
#1239 remove polyfill packages (#1258)
Signed-off-by: James Thompson - SkiData <thompson.tomo@outlook.com>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
2024-04-08 11:13:33 -07:00
Whit Waldo 64c2f4809b
Updated property on type to reflect the fact that it can return a null value (which it will if a key doesn't have any data in the state store). Only enabled nullable annotation on this file for now. (#1259)
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
2024-04-08 10:56:19 -07:00
Whit Waldo ca0bffa440
Updating Workflow XML comment for accuracy (#1260)
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
2024-04-08 10:33:55 -07:00
Elena Kolevska bdca3b320b
Adds an option to set a timeout for service invocation (#1252)
* Adds http timeout

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Adds a timeout for the grpc client

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Small updates

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Updates test

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Adds a timeout example in docs

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Adds e2e test for http service invocation

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Adds tests for grpc service invocation

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Removes grpc timeout, because it’s not needed. It can be passed directly to the call as shown in the updated tests and docs

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Update src/Dapr.Client/DaprClientBuilder.cs

Signed-off-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>

---------

Signed-off-by: Elena Kolevska <elena@kolevska.com>
Signed-off-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
2024-04-08 10:23:49 -07:00
Whit Waldo 31af35b6c6
Updated to reflect latest guidance to register endpoints via top-level route registrations (#1262)
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
2024-04-08 09:52:09 -07:00
Phillip Hoff 1b7c9f4f80
Merge 1.13 release branch back to master (#1247)
* Update protos and related use for Dapr 1.13. (#1236)

* Update protos and related use.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Update Dapr runtime version.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Init properties.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

---------

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Update artifact action versions. (#1240)

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Make recursive true as default (#1243)

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>

* Make final 1.13 changes.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

---------

Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Co-authored-by: Shivam Kumar <shivamkm07@gmail.com>
2024-03-08 09:48:58 -08:00
Phillip Hoff c07eb698ac
Source generated actor clients (#1165)
Signed-off-by: Phillip Hoff <phillip@orst.edu>
2024-02-16 11:35:29 -08:00
Phillip Hoff e244e88ac1
Use TryAddSingleton() for registering services. (#1238)
Signed-off-by: Phillip Hoff <phillip@orst.edu>
2024-02-16 11:29:42 -08:00
Whit Waldo 83858d779b
Add overload to deserialize GetBulkStateAsync item values (#1173)
* Adds overload to BulkStateItem and GetBulkStateAsync to perform SDK-based deserialization of returned values instead of strictly returning serialized strings.
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated method summary to better direct user towards one method or the other (typed or not)
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added comments to the typed BulkStateItem to better reflect the deserialized nature of the value.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Refactored GetBulkStateAsync method to a shared private method so both the non-generic and generic public methods can deserialize the data once as necessary.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed excessive space in comment.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Formatting: If we're separating parameters to separate lines, convention requires each have their own line.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

---------

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
2024-02-16 11:23:58 -08:00
James Croft 034de3e233
Enable vault name mapping and error suppression (#1231)
* Added documentation detailing how serialization works using the DataContract serialization framework. (#1222)

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

* Weakly typed actor polymorphic and null responses (#1214)

Signed-off-by: Remco Blok <remco.blok@resilientenergy.com>
Co-authored-by: Remco Blok <remco.blok@resilientenergy.com>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

* Enable vault name mapping and error suppression

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>
Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

* Add additional secret descriptor constructor for required without key map

Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

* Update configuration load exception rethrow to match rules

Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

* Add tests for required/not required exception handling

Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

* Implementing Cryptography building block in .NET (#1217)

* Added method to DaprClient and GRPC implementation to call cryptography proto endpoints

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* First pass at implementing all exposed Cryptography methods on Go interface

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added examples for Cryptography block

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added missing copyright statements

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to properly support Crypto API this time

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added copyright statements

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed deprecated examples as the subtle APIs are presently disabled

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example to reflect new API shape

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example and readme

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added overloads for encrypting/decrypting streams instead of just fixed byte arrays. Added example demonstrating the same encrypting a file via a FileStream and decrypting from a MemoryStream.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added some unit tests to pair with the implementation

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added null check for the stream argument

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Changed case of the arguments as they should read "plaintext" and not "plainText"

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Reduced number of encryption implementations by just wrapping byte array into memory stream

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Constrainted returned member types per review suggestion

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated methods to use ReadOnlyMemory<byte> instead of byte[] - updated implementations to use low-allocation spans where possible (though ToArray is necessary to wrap with MemoryStream).

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to use encryption/decryption options instead of lots of method overload variations. Simplified gRPC implementation to use fewer methods. Applied argument name updates applied previously (plainText -> plaintext).

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated tests

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unused reference

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated examples to reflect new method shapes. Downgraded package to .net 6 instead of .net 8 per review suggestion.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to reflect non-aliased values per review suggestion

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Update to ensure that both send/receive streams run at the same time instead of sequentially.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to support streamed results in addition to fixed byte arrays. Refactored implementation to minimize duplicative code.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example to fix compile issue

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed encrypt/decrypt methods that accepted streams and returned ReadOnlyMemory<byte>. Marked implementations that use this on the gRPC class as private instead.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added missing Obsolete attributes on Encrypt/Decrypt methods. Added overloads on decrypt methods that do not require a DecryptionOptions to be passed in.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated encrypt/decrypt options so the streaming block size no longer uses a uint. Added validation in its place to ensure the value provided is never less than or equal to 0.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated how validation works in the options to accommodate lack of the shorter variation in .NET 6

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated names of encrypt/decrypt streaming methods so everything uses just EncryptAsync or DecryptAsync

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Fixed regression that would have prevented data from being sent entirely to the sidecar. Also simplified operation per suggestion in review.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated examples to reflect changed API

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated so IAsyncEnumerable methods (encrypt and decrypt) return IAsyncEnumerable<ReadOnlyMemory<byte>> instead of IAsyncEnumerable<byte[]>.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example to reflect change from IAsyncEnumerable<byte> to IAsyncEnumerable<ReadOnlyMemory<byte>>

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Avoiding allocation by using MemoryMarshal instead of .ToArray() to create MemoryStream from ReadOnlyMemory<byte>.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Performance updates to minimize unnecessary byte array copies and eliminate unnecessary allocations.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unnecessary return from SendPlaintextStreamAsync and SendCiphertextStreamAsync methods

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated exception text to be more specific as to what's wrong with the input value.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Minor tweak to prefer using using a Memory

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Deduplicated some of the Decrypt methods, simplifying the implementation

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Eliminated duplicate encryption method, simplifying implementation

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to eliminate an unnecessary `await` and `async foreach`.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated stream example to reflect the changes to the API shape

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added notes about operations with stream-based data

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

---------

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

* Update DaprSecretDescriptor constructors and documentation

Signed-off-by: James Croft
Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

* Remove DaprSecretStoreConfigurationProvider Console.WriteLine

Signed-off-by: James Croft <jamz_c@hotmail.co.uk>

---------

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: James Croft <jamz_c@hotmail.co.uk>
Signed-off-by: Remco Blok <remco.blok@resilientenergy.com>
Signed-off-by: Yash Nisar <yashnisar@microsoft.com>
Signed-off-by: James Croft
Co-authored-by: Whit Waldo <whit.waldo@innovian.net>
Co-authored-by: Remco Blok <remcoblok@hotmail.com>
Co-authored-by: Remco Blok <remco.blok@resilientenergy.com>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
Co-authored-by: Yash Nisar <yashnisar@microsoft.com>
2024-02-16 09:10:46 -08:00
Nicolas Chaussé 817b60d9c6
Handle the case where appid contains at least one upperletter (#1233)
* Handle the case where appid can contain some uppercases

Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>
Signed-off-by: TWEESTY <chausse.nicolas@gmail.com>
Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>

* Add one test sample

Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>
Signed-off-by: TWEESTY <chausse.nicolas@gmail.com>
Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>

* Optimization in order to not add some overhead time for the "normal" use case

Signed-off-by: TWEESTY <chausse.nicolas@gmail.com>
Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>

* Change comment which was false

Signed-off-by: TWEESTY <chausse.nicolas@gmail.com>
Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>

* Remove the breaking change

Signed-off-by: TWEESTY <chausse.nicolas@gmail.com>
Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>

* Simplify according to the review

Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>

---------

Signed-off-by: Nicolas Chaussé <chausse.nicolas@gmail.com>
Signed-off-by: TWEESTY <chausse.nicolas@gmail.com>
2024-02-16 09:02:22 -08:00
Whit Waldo ca2fab2567
Implementing Cryptography building block in .NET (#1217)
* Added method to DaprClient and GRPC implementation to call cryptography proto endpoints

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* First pass at implementing all exposed Cryptography methods on Go interface

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added examples for Cryptography block

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added missing copyright statements

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to properly support Crypto API this time

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added copyright statements

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed deprecated examples as the subtle APIs are presently disabled

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example to reflect new API shape

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example and readme

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added overloads for encrypting/decrypting streams instead of just fixed byte arrays. Added example demonstrating the same encrypting a file via a FileStream and decrypting from a MemoryStream.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added some unit tests to pair with the implementation

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added null check for the stream argument

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Changed case of the arguments as they should read "plaintext" and not "plainText"

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Reduced number of encryption implementations by just wrapping byte array into memory stream

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Constrainted returned member types per review suggestion

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated methods to use ReadOnlyMemory<byte> instead of byte[] - updated implementations to use low-allocation spans where possible (though ToArray is necessary to wrap with MemoryStream).

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to use encryption/decryption options instead of lots of method overload variations. Simplified gRPC implementation to use fewer methods. Applied argument name updates applied previously (plainText -> plaintext).

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated tests

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unused reference

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated examples to reflect new method shapes. Downgraded package to .net 6 instead of .net 8 per review suggestion.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to reflect non-aliased values per review suggestion

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Update to ensure that both send/receive streams run at the same time instead of sequentially.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to support streamed results in addition to fixed byte arrays. Refactored implementation to minimize duplicative code.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example to fix compile issue

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed encrypt/decrypt methods that accepted streams and returned ReadOnlyMemory<byte>. Marked implementations that use this on the gRPC class as private instead.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added missing Obsolete attributes on Encrypt/Decrypt methods. Added overloads on decrypt methods that do not require a DecryptionOptions to be passed in.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated encrypt/decrypt options so the streaming block size no longer uses a uint. Added validation in its place to ensure the value provided is never less than or equal to 0.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated how validation works in the options to accommodate lack of the shorter variation in .NET 6

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated names of encrypt/decrypt streaming methods so everything uses just EncryptAsync or DecryptAsync

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Fixed regression that would have prevented data from being sent entirely to the sidecar. Also simplified operation per suggestion in review.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated examples to reflect changed API

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated so IAsyncEnumerable methods (encrypt and decrypt) return IAsyncEnumerable<ReadOnlyMemory<byte>> instead of IAsyncEnumerable<byte[]>.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example to reflect change from IAsyncEnumerable<byte> to IAsyncEnumerable<ReadOnlyMemory<byte>>

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Avoiding allocation by using MemoryMarshal instead of .ToArray() to create MemoryStream from ReadOnlyMemory<byte>.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Performance updates to minimize unnecessary byte array copies and eliminate unnecessary allocations.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unnecessary return from SendPlaintextStreamAsync and SendCiphertextStreamAsync methods

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated exception text to be more specific as to what's wrong with the input value.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Minor tweak to prefer using using a Memory

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Deduplicated some of the Decrypt methods, simplifying the implementation

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Eliminated duplicate encryption method, simplifying implementation

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated to eliminate an unnecessary `await` and `async foreach`.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated stream example to reflect the changes to the API shape

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added notes about operations with stream-based data

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

---------

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
2024-02-14 11:29:08 -08:00
Remco Blok 348d1430ba
Weakly typed actor polymorphic and null responses (#1214)
Signed-off-by: Remco Blok <remco.blok@resilientenergy.com>
Co-authored-by: Remco Blok <remco.blok@resilientenergy.com>
Co-authored-by: Phillip Hoff <phillip@orst.edu>
2024-01-30 21:33:15 -08:00
Whit Waldo d023a43ba4
Added documentation detailing how serialization works using the DataContract serialization framework. (#1222)
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
2024-01-26 10:34:12 -08:00
Josh van Leeuwen 233c620b0f
Actor State TTL (#1164)
* Actor state TTL support

Signed-off-by: joshvanl <me@joshvanl.dev>
2024-01-08 15:06:20 -08:00
MregXN 7616bfad22
use daprWorkflowClient (#1212)
Signed-off-by: MregXN <mregxn@gmail.com>
2024-01-08 14:14:07 -08:00
Farshad Davoudi 72284066f7
Update _index.md by fixing broken link (#1221)
Signed-off-by: Farshad Davoudi <f.davoudi.r@outlook.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2024-01-05 17:09:27 -08:00
Henrik Karström 0511b733a3
Fix example dotnet-actors-howto.md (#1218)
Fix example output to not repeat "Success"

Signed-off-by: Henrik Karström <henrik.karstrom@gmail.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2024-01-05 16:59:48 -08:00
Phillip Hoff 8d06a1f984
Enable `CancellationToken` for non-remoting actor implementations (#1202)
* Sketch no arguments with cancellation.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Sketch the other argument permutations.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Refactor tests.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Push HTTP request cancellation token down into handlers.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

---------

Signed-off-by: Phillip Hoff <phillip@orst.edu>
2024-01-05 16:43:51 -08:00
Ryan Lettieri 10ef81873b
Adding cancel to workflow example and updating api references to beta (#1194)
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2023-11-29 14:39:56 -08:00
Frank Buckley e8204dca45
Correct spelling of "identified" (#1159)
Signed-off-by: Frank Buckley <frank@frankbuckley.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2023-11-29 11:09:13 -08:00
Marc Duiker 1cb00523a9
Add holopin.yml config (#1147)
Signed-off-by: Marc Duiker <marcduiker@users.noreply.github.com>
2023-11-28 16:38:09 -08:00
Josh van Leeuwen b669585b22
Updates Dapr to 1.12 in GitHub actions itest (#1185)
* Updates Dapr to 1.12 in GitHub actions

Signed-off-by: joshvanl <me@joshvanl.dev>

* Remove commit ref from github actions

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix case sensitive error string match case

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2023-11-28 16:28:52 -08:00
MregXN abcbf4f9a0
modify readme (#1192)
Signed-off-by: MregXN <mregxn@gmail.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2023-11-28 16:05:39 -08:00
Whit Waldo e435efda96
Added unit test to prove out enum serialization working as expected during event publish (#1174)
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2023-11-28 15:55:34 -08:00
MregXN bb3f97abfd
Modify broken links in README (#1190)
Signed-off-by: MregXN <mregxn@gmail.com>
2023-11-28 15:48:15 -08:00
Phillip Hoff 09008bb43b
.NET 8 Support (#1188)
* Update test projects to use .NET 8.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Update SDK projects to target .NET 8.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Update workflows to target .NET 8.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

---------

Signed-off-by: Phillip Hoff <phillip@orst.edu>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2023-11-15 10:48:02 -08:00
Ryan Lettieri 39a38f6e9b
Initial implementation for workflow log tracing (#1176)
* Initial setup for workflow log tracing

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Created log sink for E2E tests using serilog

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Formatting

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Addressing feedback on review

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Addressing some review comments

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Addressing more feedbck in the workflow e2e test

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

---------

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2023-11-14 12:17:17 -08:00
Phillip Hoff 2332388155
Update actor reminder example. (#1179)
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2023-11-13 15:25:56 -08:00
Phillip Hoff 02ab25e937
Consolidate C# language version to 10. (#1180)
Signed-off-by: Phillip Hoff <phillip@orst.edu>
2023-11-13 15:20:01 -08:00
Ryan Lettieri 3b979e6bdb
Adding in new test for parallel raise events in workflow (#1155)
* Adding in new test for parallel raise events in workflow

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2023-10-06 11:37:38 -07:00
Fabian Martinez 99d874a2b1
set dapr-api-token to healthz requests when needed (#1145)
Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2023-09-07 15:21:11 -07:00
Ryan Lettieri 87329f62b1
Updating workflow collection to allow for use of API Token validation (#1141)
Updating workflow collection to allow for use of API Token validation

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2023-09-07 14:51:32 -07:00
Erik O'Leary fd7168fdfc
Proof-of-concept serialization of advanced JSON types, records (#1073)
* Add system text json support for actor serialization

Signed-off-by: Erik O'Leary <erik.m.oleary@gmail.com>

* Remove unnecessary stream; directly use serializetobytes

Signed-off-by: Erik O'Leary <erik.m.oleary@gmail.com>

* Disable parallel test execution to make test results more repeatable/predictable

Signed-off-by: Erik O'Leary <erik.m.oleary@gmail.com>

---------

Signed-off-by: Erik O'Leary <erik.m.oleary@gmail.com>
2023-09-05 12:16:45 -07:00
Yash Nisar 17f849b175
Remove .NET Core 3.1 support and standardize on .NET 6 (#1045)
* Remove .NET Core 3.1 support and standardize on .NET 6

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

* Remove support for .NET 5 as well

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

---------

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>
2023-08-24 11:04:02 -07:00
vlardn 667dcaf441
Inroduce OnActorMethodFailedAsync virtual method for overriding (#1014)
Signed-off-by: Vlad Rudenko <vladislav.rudenko@gmail.com>
2023-08-16 09:49:12 -07:00
Shivam Kumar f4e02df980
adding get actor reminder API in docs (#1113)
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
2023-07-21 14:15:42 -07:00
Hannah Hunter 2449bcd669
remove invalid code line (#1127)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2023-07-18 12:51:12 -07:00
Aaron Crawfis 6dae4e339d
Add cascading metadata (#1128)
Signed-off-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2023-07-18 11:39:16 -07:00
Artur Souza f788efabde
Add support to DAPR_HTTP_ENDPOINT and DAPR_GRPC_ENDPOINT env. (#1124)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-07-18 11:25:17 -07:00
MonkeyTennis 574dc0cb3d
Rev'ed Grpc.Net.Client PackageReference version for Dapr dotnet-sdk (#1126)
Rev'ed Grpc.Net.Client PackageReference version for Dapr dotnet-sdk

Signed-off-by: Bradley Cotier <bcotier@microsoft.com>
2023-07-18 11:10:11 -07:00
Chris Gillum c99475be3c
[Workflow] Fix issue with ignored external event payload (#1119)
* [Workflow] Fix issue with ignored external event payload

Signed-off-by: Chris Gillum <cgillum@microsoft.com>

* Pushing missing commits

Signed-off-by: Chris Gillum <cgillum@microsoft.com>

* Remove unnecessary steps from itests.yml

Signed-off-by: Chris Gillum <cgillum@microsoft.com>

---------

Signed-off-by: Chris Gillum <cgillum@microsoft.com>
2023-07-06 16:44:40 -07:00
Shubham Sharma 8e9db70c0f
Fix HTTP examples in Workflow Console App (#1107)
* Update demo.http;

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix input

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

---------

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2023-06-15 17:07:36 -07:00
Bernd Verst be959f943c
Link to DotNet Fossa status (#1105)
Link to DotNet Fossa status

Signed-off-by: Bernd Verst <bverst@gmail.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
2023-06-15 16:16:32 -07:00