Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Added folderIds for SubscribeToStreamingNotifications #190

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LukaszGajowski
Copy link

@LukaszGajowski LukaszGajowski commented Jun 9, 2018

I develop app for monitoring Exchange by using SubscribeToStreamingNotifications and in StreamingSubscription class value of folderIds was lacked. And for some cases this information is needed for me.
In order not to modify a lot of code, I added support for this parameter in the easiest way as is possible.
Such functionality will certainly be useful for others as well.

@msftclas
Copy link

msftclas commented Jun 9, 2018

CLA assistant check
All CLA requirements met.

@@ -2849,7 +2849,9 @@ public void UnpinTeamMailbox(EmailAddress emailAddress)

EwsUtilities.ValidateParamCollection(folderIds, "folderIds");

return this.BuildSubscribeToStreamingNotificationsRequest(folderIds, eventTypes).Execute()[0].Subscription;
StreamingSubscription StreamingSub = this.BuildSubscribeToStreamingNotificationsRequest(folderIds, eventTypes).Execute()[0].Subscription;
StreamingSub.folderIds = folderIds;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at this a bit more, it seems that it might be more effective to expose the request object off of the StreamingSubscription. This because I could see people being interested in the EventTypes as well. So you would add a Request prop on StreamingSubscription and remove your folderIds one.

Copy link
Contributor

@davster davster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments on files

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants