How get OnEndCommand's event in rhinocommon?

I want to get some events via C# like below references.
Is it possible ?

C++ References:
https://github.com/mcneel/Rhino5Samples_CPP/blob/master/SampleEventWatcher/SampleRhinoEventWatcher.h

Hi kaicihuang,
Look at: https://github.com/dalefugier/SampleCsEventWatcher/blob/master/SampleCsEventHandlers.cs

Thanks!:grinning: