Sync custom items: Subscribe to the Created event
This tutorial uses FileSystemWatcher
that provides the following file system events: Changed
, Deleted
, Created
, and Renamed
.
To subscribe to the Created
event, in the constructor of the CustomTypeSiteSyncSnapIn
class, add the App_Data\Sitefinity\Test
path that will be watched by the watcher and subscribe to the Created
event.
Use the following code sample: