Implementing a custom Actor
Note: Episerver Forms is supported by MVC-based websites only.
Actor performs server-side action after a visitor submits a form
After a visitor submits a form, Forms.Core calls Actors to perform additional processing.
- You can extend and plug in the Actor, and a third-party developer can implement it.
- You can run Actors in a sync or async manner.
- Each actor is provided with several data, including SubmissionData and the HttpRequest.
- Sync-actor can have (and can modify) the HttpResponse, so Actor can modify response and cookie before sending back result to a visitor's browser.
By default, Episerver Forms has two Actors:
Basically, third-party developer can implement his own Actor by:
- Inheriting a PostSubmissionActorBase base class.
- Starting from scratch with the IPostSubmissionActor interface and interface IUIPropertyCustomCollection for edit view user interface of configuring the Actor model
See a code sample about implementing a new Actor in open-source at https://github.com/episerver/EPiServer.Forms.Demo