-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .NET client for dynamic pubsub subscriptions #1346
Commits on Sep 4, 2024
-
First pass implementing standalone pubsub client for Dapr (focusing o…
…n using streaming subscriptions). Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 86a6c1c - Browse repository at this point
Copy the full SHA 86a6c1cView commit details -
Added missing copyright notice
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 849a828 - Browse repository at this point
Copy the full SHA 849a828View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d73e69 - Browse repository at this point
Copy the full SHA 2d73e69View commit details -
Added Dapr.Protos project to solution as a central place to put the D…
…apr prototypes Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bed6e4d - Browse repository at this point
Copy the full SHA bed6e4dView commit details -
Added Nuget properties to project
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bdc5a03 - Browse repository at this point
Copy the full SHA bdc5a03View commit details -
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1f43315 - Browse repository at this point
Copy the full SHA 1f43315View commit details -
Updated to use the standard Dapr client builder, added DI registratio…
…n extension methods. Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0bab52c - Browse repository at this point
Copy the full SHA 0bab52cView commit details -
Minor tweaks to conform to solution style
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 90fe7b0 - Browse repository at this point
Copy the full SHA 90fe7b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e751db - Browse repository at this point
Copy the full SHA 5e751dbView commit details -
Tweak to README to include additional package names
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d5ed77 - Browse repository at this point
Copy the full SHA 6d5ed77View commit details -
Added test project for Dapr.Messaging
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 32ce9be - Browse repository at this point
Copy the full SHA 32ce9beView commit details
Commits on Sep 15, 2024
-
Added missing copyright statement
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0852650 - Browse repository at this point
Copy the full SHA 0852650View commit details -
Updated naming in file to match solution convention. Fleshed out miss…
…ing XML comment. Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0cb3815 - Browse repository at this point
Copy the full SHA 0cb3815View commit details -
Conforming to naming conventions
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7edb9c5 - Browse repository at this point
Copy the full SHA 7edb9c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3491b4 - Browse repository at this point
Copy the full SHA e3491b4View commit details -
Eliminated need for locks by using ConcurrentDictionary instead
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 219d458 - Browse repository at this point
Copy the full SHA 219d458View commit details -
Simplified registration extensions to minimize repeated implementations
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1847ca9 - Browse repository at this point
Copy the full SHA 1847ca9View commit details
Commits on Sep 16, 2024
-
Added public key to InternalsVisibleTo annotation
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 848c490 - Browse repository at this point
Copy the full SHA 848c490View commit details -
Significantly simplified dynamic pubsub implementation
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b6810b0 - Browse repository at this point
Copy the full SHA b6810b0View commit details -
Handling cancellation token timeout with configured action
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 04fa4d5 - Browse repository at this point
Copy the full SHA 04fa4d5View commit details -
Updated name of method so it wouldn't be as confusing why the develop…
…er would have two back-to-back invocations of SubscribeAsync (especially since it's not an async implementation at the Grpc client level. Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d165b14 - Browse repository at this point
Copy the full SHA d165b14View commit details -
Added another message handler to facilitate channel draining in case …
…of cancellation where there's a buffer in the Channel Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5c3e1ce - Browse repository at this point
Copy the full SHA 5c3e1ceView commit details -
Handling potential race condition, corrected return type to be Publis…
…hSubscribeReceiver instead of IAsyncDisposable Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 85ef0f8 - Browse repository at this point
Copy the full SHA 85ef0f8View commit details -
No longer limiting a single subscriber for each component/topic combi…
…nation Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 218f604 - Browse repository at this point
Copy the full SHA 218f604View commit details -
Eliminated restriction for one subscription per component/topic. Adde…
…d channel to the shared ConnectionManager to handle message acknowledgements and to process inbound acknowledgements sequentially to the shared stream instead of from each separate receiver. Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a7c4d5d - Browse repository at this point
Copy the full SHA a7c4d5dView commit details -
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 152c14e - Browse repository at this point
Copy the full SHA 152c14eView commit details -
Updates to implementation to reflect latest protos
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3af961a - Browse repository at this point
Copy the full SHA 3af961aView commit details -
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6e17cd3 - Browse repository at this point
Copy the full SHA 6e17cd3View commit details -
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 562298b - Browse repository at this point
Copy the full SHA 562298bView commit details -
Added the only unit test I could identify that is within capabilities…
… of the current mocking technology (e.g. can't mock static or sealed types) Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 448c89b - Browse repository at this point
Copy the full SHA 448c89bView commit details -
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e18e49c - Browse repository at this point
Copy the full SHA e18e49cView commit details -
Added example demonstrating the streaming subscription functionality
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 033a27a - Browse repository at this point
Copy the full SHA 033a27aView commit details -
Retargeting to .NET 6 instead of .NET 8
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d8969d0 - Browse repository at this point
Copy the full SHA d8969d0View commit details -
Added sample deserialization - could be improved with client support
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a9f645c - Browse repository at this point
Copy the full SHA a9f645cView commit details
Commits on Sep 25, 2024
-
Removed singleton ConnectionManager as non-conforming to the spec. Ad…
…ded flag to ensure double-subscription doesn't happen to cancel stream (with multiple initial requests), updated message draining during disposal and updated unit tests. Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d0efaed - Browse repository at this point
Copy the full SHA d0efaedView commit details -
Added default cancellation token value
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd22e83 - Browse repository at this point
Copy the full SHA dd22e83View commit details -
Minor refactoring so cancellation exceptions can be handled in a sing…
…le try/catch block instead of having more than one Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 521396f - Browse repository at this point
Copy the full SHA 521396fView commit details -
Refactoring to ensure that channels are drained successfully even if …
…cancellation token throws. Minor perf improvments as spotted. Added/fixed comments. Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ef418c0 - Browse repository at this point
Copy the full SHA ef418c0View commit details -
Cleaning up unnecessary iniitalization values, usings and null access…
… operators Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3addf75 - Browse repository at this point
Copy the full SHA 3addf75View commit details -
Modified message drain to only drain acknowledgements and even then, …
…be constrained by a configurable timespan in how long it waits. Added some try/catch blocks to handle messages being written when the writer has been completed in case a Disposal happens mid-processing. Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1cb6855 - Browse repository at this point
Copy the full SHA 1cb6855View commit details -
Updated to eliminate the double call for 'Register.SubscribeAsync' as…
… the GrpcClient creates the PublishSubscribeReceiver, then calls SubscribeAsync internally. Renamed Register to `SubscribeAsync` and updated return type + example Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 462e9a1 - Browse repository at this point
Copy the full SHA 462e9a1View commit details -
Removed unnecessary call to DisposeAsync
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f16effc - Browse repository at this point
Copy the full SHA f16effcView commit details -
Updated to apply some performance improvements to the channels at ins…
…tantiation. Added support to let developer specify a maximum number of messages that can be queued for processing (blocking new Dapr from submitting more to the replica) and tweaked how messages are written in the subscription loop to accommodate this. Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 67a637b - Browse repository at this point
Copy the full SHA 67a637bView commit details
Commits on Sep 26, 2024
-
Added cancellation token to acknowledgement channel writer
Signed-off-by: Whit Waldo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a67185d - Browse repository at this point
Copy the full SHA a67185dView commit details
Commits on Oct 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ce5b24a - Browse repository at this point
Copy the full SHA ce5b24aView commit details
Commits on Oct 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6db55c4 - Browse repository at this point
Copy the full SHA 6db55c4View commit details