-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated AsyncBridge pkg in project file * EventEngine WIP * EventEngine Handshake and Receiving * subscribe listeners * ISubscribeOperation for Subscribe * untangled PubnubCoreBase2 for SubscribeOperation2 * support pubnubpcl and uwp * capture last TT for subscribe when network fails * PNStatus * EventEngine states and transitions WIP * unit tests for EE - unsubscribed and handshake * WIP * Refactored around states and invocations * Replaced EffectInvocationType with EventType * Refactored EffectInvocation and Event * Added invocations * WIP - ContractTesting * ContractTest simpleSubscribe * Replaced Tuple with KeyValuePair for EventEngine tests * HandshakeReconnect handler * Handshake retry attempts * unit tests for HandshakeReconnecting * Added unit tests to Transitions * refactored based on tests * check for timetoken for valid response * Handshakereconnect failure * Updated Transitions * subscribeHandshakeFailure contract test * Removed unused project reference. * Refactored Effect Dispatcher * fix in refactored effect dispatcher * Updated dependency nuget packages * refactor around dispatcher * unwanted namespace * fix HandshakeReconnect IsManaged flag * not required code * removed unused dispatch method * CancelHandshake * CancelReceive and CancelHandshakeReconnect * ReceivingReconnect WIP * ReceivingReconnect * PresenceEventResult * Fix to pass contract test * Eventengine poc refactor (#170) * WIP EE refactor - core classes * WIP - reorganization * WIP - eventQueue * WIP state abstract class to interface * added states and Pascal case property names (#171) * added states and Pascal case property names * HandshakeReconnectingState and other Pascal casing (#172) * HandshakeReconnectingState * EmitStatusInvocation * HandshakeFailedState * Null guard on invocation list * HandshakeStoppedState, ReceiveStoppedState, ReceiveFailedState, ReceivingState and ReceiveReconnectState transitions (#173) * HandshakeStoppedState transitions * ReceiveStoppedState and ReceiveFailedState transitions * ReceivingState transitions * ReceiveReconnectState transitions * Eventengine/state simplification (#174) * WIP remove abstract from interface, add transition utils * Simplified the invocations during transitions, added onEntry and onExit transitions, added HandshakingState and UnsubscribedState * fix * Switch expression * WIP * WIP * WIP * Review fixes * member case * removed With(null) * file ref fix * fix: simplify and add comments * fix: comments * fix: more comments * fix: race condition * fix: additional race condition guards * fix: removed unused property * fix: made loop generic * feat: simplified abstraction (#176) * UnsubscribeAll Event (#175) * Added UnsubscribeAllEvent to states * Eventengine/handshake handler (#181) * feat: simplified abstraction * feat: handshake effect handler * fix: initial retry implementation * handshake reconnect * fix: handshake handler * revert *.csproj changes * added required info in handshake reconnect invocation. * receive handler (#180) * receive handler * fix: background handlers * *reconnection configurations *refactor naming * passing configuration for reconnection * fix: transition values from receive reconnect * wip: receive messages * Revert "Merge remote-tracking branch 'origin/eventengine/handshake-handler' into eventengine/handshake-handler" This reverts commit be568f7, reversing changes made to 0da6c9a. * fix * ReceivingEffectHandler - ReceivingResponse * null check * SubscribeEventEngine - receiveHandler * *csproj file for RReceivingEffectHandler * EmitStatus effect handler - take1 * empty task * wip emit messages * wip emit messages * cleanup and unify convention for *emitters * missing changes emitmessage * Added publisher * emitmessages --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: Pandu Masabathula <[email protected]> * effect handler cleanup emit status * wip: switch to public * StateTransitions - Tests - WIP * restore overridden changes from 83d3929 * csproj ReconnectionConfiguration to PCL/UWP * wip: base class for states * wip: event engine delegates exposed * refactor handshake unit tests * HandshakeFailedState tests * HandshakeStopped tests * ReceivingState tests * ReceiveReconnectingState tests * ReceiveReconnectingState - more tests * ReceiveFaileState and ReceiveStoppedState * Any UnsubscribeEvent tests * Separated tests to individual states * HandshakingState emit status * invocations and refactor * wip: preliminary potential fix for dispatcher * Refactored HandshakeFailedStateTransition * take-1: integration * listeners * Eventengine/effects abstraction (#184) * wip: effects abstraction overhaul * fix: added comments * fix: emitters * state transition unit tests (#182) * unit test cases for all subscribe state transtiions * moved subscribe event engine initialisation to subscribeOpertaion * added cancel reconnect invocations support * fix: retry condition refined * State transitions for presence event engine (#203) Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: Mohit Tejani <[email protected]> * temporary suspend EE acceptance tests to unlock progress (#205) * effect invocations used in transitions (#206) Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: Mohit Tejani <[email protected]> * presence: effects (#208) * start: implementation of presnece event engine effects * added RetryConfiguration class, * removed heartbeat operation from subscribemanager and created a new opeartion class for heartbeat * indentation! * RetryConfiguration definition added * removed old Reconnection settings * review Comment: renamed Heartbeat Operation class name to solve typo * Leave Effect handler * Presence event engine with RetryConfiguration * * Removed RetryConfiguration from Subscription States, Added updated RetryConfiguration settings in Effect handlers * Update PCL project for RetryConfiguration files, leave effect handler * fix: build error system.runtime.remoting not needed * fix: build for UWP, Added missing reference file of latests * revert last UWP csproj changes * Presence EventEngine files link for UWP project * fix: backward compatibility for legacy reconnection policy * fix: reconnectionPolicy class property assignment * indentation and whitespaces review comment * Ee/fix tests (#207) * PresenceEventEngine integration (#209) * PresenceEventEngine and its factory class implementation * PresenceOperation class implementation * Initialise PresenceOperation into SubscribeOperation for triggering PresenceEvent Engine * Subscribe() api to have PresenceOperation initialised conditionally * Added classes for PubnubPCL project * fix: namespace convention for PresenceOperation class * Update UWP.csproj file for new classes reference links * * decoupled wait effect handler from invocation"s interval value * bind effects with States * * `MaintainPresenceState` flag in PubNub configuration. Integration of Unsibscribe api with event engine enabled scenario. Fix state object construction issue for given pubnub instance id. Handling of subsequent Subscribe call in Subscription manager for event engine. removed dummy invocations. Exposed channel/group for subscribe event engine for internal usage. * syntax fix for all.net version compatiblity for empty Array init * refactor/EE (#210) * refactor EventEngine source code: * Updated subscribe states. * updated subscribe Effects * Fixed Retry in effect handlers to get configuration from PNConfiguration instance. * Refactored Unsubscribe. * Renamed SubscirbeOperation2 to SubscriptionEndpoint * Miscellaneous minor fixes * fix csproj file for UWP * Revert "fix csproj file for UWP" This reverts commit 7897081. * fix compilation error csproj UWP * removed duplicate entry for include * fix: subscribe event engine workflow * UnsubscribeAllEndpoint added for event Engine * Refactored code for handling unsubscribe in Presence * added UnsubscribeAllEndpoint class * refactored code for receive Effect handler and some code readablility issue addressed * update PCL and UWP * code indentation pubnub.cs * fix: acceptance test build * CLEN-1787: Event Engine Acceptance Tests (#212) * * fix subscribe event engine transition for restore, * fixed retry related state context information, * fixed timetoken data type for step definition method param * updated code behind file to latest specs. * Presence event engine accpetance tests * fix: Subsscribe event engine related bug caught during acceptance tests * fix: presence event engine issues identified during acceptance tests * fix: objects v2 acceptance tests key issue --------- Co-authored-by: Serhii Mamontov <[email protected]> * fix: key mismatch issue for mock request * encryption test for unencrypted message * hashCode value override for mock Request * PCL: add mock request and comparision implementation for mockserver * PCL:fix value overflow in hash calculation of mock request. * added EventEmitter implementation to fix emit event effect to redirect event data to intended callback code clean up * Fix MockServer Socket and Requests storing issues, link duplicate files from MockServerPubnubApi to MockServerPubnubApiPCL * revert run test change * PubNub SDK v6.20.0.0 release. --------- Co-authored-by: Pandu Masabathula <[email protected]> Co-authored-by: Michał Dobrzański <[email protected]> Co-authored-by: Michał Dobrzański <[email protected]> Co-authored-by: Mateusz Dahlke <[email protected]> Co-authored-by: Serhii Mamontov <[email protected]> Co-authored-by: PUBNUB\jakub.grzesiowski <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
- Loading branch information
1 parent
3099e2c
commit 325cae0
Showing
181 changed files
with
8,959 additions
and
1,914 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/Api/PubnubApi/EndPoint/ChannelGroup/AddChannelsToChannelGroupOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/Api/PubnubApi/EndPoint/ChannelGroup/DeleteChannelGroupOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/Api/PubnubApi/EndPoint/ChannelGroup/ListAllChannelGroupOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/Api/PubnubApi/EndPoint/ChannelGroup/ListChannelsForChannelGroupOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/Api/PubnubApi/EndPoint/ChannelGroup/RemoveChannelsFromChannelGroupOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/Api/PubnubApi/EndPoint/Files/GenerateFileUploadUrlOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/Api/PubnubApi/EndPoint/Objects/GetAllChannelMetadataOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/Api/PubnubApi/EndPoint/Objects/GetAllUuidMetadataOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/Api/PubnubApi/EndPoint/Objects/GetChannelMembersOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/Api/PubnubApi/EndPoint/Objects/GetUuidMetadataOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/Api/PubnubApi/EndPoint/Objects/RemoveUuidMetadataOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/Api/PubnubApi/EndPoint/Objects/SetUuidMetadataOperation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.