Developer forum

Forum » Development » BeforeQuery subscriber

BeforeQuery subscriber

Mikkel Ulstrup
Reply

Hi,

 

I am looking for a subscriber triggereing before a query when using a query publisher in DW9. So far I have found one for ecommerce:

[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Querying.BeforeQuery)]

 

But obviously, this does not trigger when using the query publisher. :)

 

Kind regards

Mikkel Ulstrup


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Mikkel

You are right - they are not there. I've just added them to the QueryPublisher, TFS#36778. Later today you can upgrade the Dynamicweb.QueryPublisher package to version 1.1.1 and you get 2 new notifications similar to the ones from Ecommerce:

Dynamicweb.QueryPublisher.Notifications.Querying.BeforeQuery
Dynamicweb.QueryPublisher.Notifications.Querying.AfterQuery

BR Nicolai

Votes for this answer: 1
 
Nicolai Pedersen
Reply

The package is now released: https://www.myget.org/feed/dynamicweb-packages/package/nuget/Dynamicweb.QueryPublisher

 
Mikkel Ulstrup
Reply

Thank you.! It works. :)

 

Kind regards

Mikkel Ulstrup

 

You must be logged in to post in the forum