You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicdelegatevoidServerEventHandler(IRestServerserver);ServerEventHandlerhandler= restServer =>{/* do something here */};server.BeforeStart+=handler;server.AfterStart+=handler;server.BeforeStop+=handler;server.AfterStop+=handler;
deprecate OnBeforeStart, OnAfterStart, OnBeforeStop and OnAfterStop
delegate must take an IRestServer instance as an argument
delegates for all handlers are invoked in the order they are added
exceptions throw by delegates will be re-thrown in an AggregateException
nothing else executes prior to the Before* delegates being invoked
After* delegates will not be invoked if exceptions are encountered
update ServerSettings with delegates
clone delegates between IServerSettings and IRestServer
The text was updated successfully, but these errors were encountered:
scottoffen
changed the title
Change server delegates to be Events
Change Before and After Delegates for Start and Stop Server to Use Events
Nov 18, 2016
scottoffen
changed the title
Change Before and After Delegates for Start and Stop Server to Use Events
Add Start and Stop Server EventsHandlers
Nov 19, 2016
scottoffen
changed the title
Add Start and Stop Server EventsHandlers
Add Before and After Start and Stop Server EventsHandlers
Nov 19, 2016
Desired Result
OnBeforeStart
,OnAfterStart
,OnBeforeStop
andOnAfterStop
IRestServer
instance as an argumentAggregateException
Before*
delegates being invokedAfter*
delegates will not be invoked if exceptions are encounteredServerSettings
with delegatesIServerSettings
andIRestServer
The text was updated successfully, but these errors were encountered: