Skip to content

Instantly share code, notes, and snippets.

@M-Yankov
Created October 11, 2017 13:34
Show Gist options
  • Save M-Yankov/b52f353f7a589469562225a33ca59a12 to your computer and use it in GitHub Desktop.
Save M-Yankov/b52f353f7a589469562225a33ca59a12 to your computer and use it in GitHub Desktop.
Event property has add/remove instead of get/set
public event EventHandler AuthenticateRequest
{
add
{
this.AddSyncEventHookup(HttpApplication.EventAuthenticateRequest, value, RequestNotification.AuthenticateRequest);
}
remove
{
this.RemoveSyncEventHookup(HttpApplication.EventAuthenticateRequest, value, RequestNotification.AuthenticateRequest);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment