7h3Rabbit/EpiServerStaticWebExample

Adding possibility to consume events

Closed this issue · 1 comments

We want people to be able to modify the use after their own liking.
There for we will want to support the following events on the IStaticWebService

  • BeforeGeneratePage
    Called before HTTP Request is triggered. This event send with it the ContentReference, CultureInfo and PageUrl. This event is interruptible and if true, it will not send request.

  • BeforeEnsurePageResources
    Called before retrieving the resources this page is dependent on. This event send with it the ContentReference, CultureInfo, PageUrl and HTML.

  • AfterEnsurePageResources
    Called after retrieving the resources this page is dependent on. This event send with it the ContentReference, CultureInfo, PageUrl and HTML.

  • BeforeGeneratePageWrite
    Called before page is written to disk .This event send with it the ContentReference, CultureInfo and PageUrl, FilePath and resulting HTML. This event is interruptible and if true, it will be ignored.

  • AfterGeneratePageWrite
    Called after page was written to disk. This event send with it the ContentReference, CultureInfo and PageUrl, FilePath.

  • AfterGeneratePage
    Called after everything is done. This event send with it the ContentReference, CultureInfo and PageUrl.