Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Export(typeof(IXBaseSocket))]
- [XBaseSocketMetadata("Test", Constants.GenericTextBufferSize)]
- public class TestController : XBaseSocket
- {
- [HandlerEvent("OnTest",Order=2)]
- public void MyTestMethod1(XSocketEvent e)
- {
- //Do stuff in step 2
- this.AsyncSend(e.PayLoad);
- }
- [HandlerEvent("OnTest",Order=3)]
- public void MyTestMethod2(XSocketEvent e)
- {
- //Do stuff in step 3
- this.AsyncSend(e.PayLoad);
- }
- [HandlerEvent("OnTest")]
- public void MyTestMethod3(XSocketEvent e)
- {
- //Do stuff in step 1
- this.AsyncSend(e.PayLoad);
- }
- public override IXBaseSocket NewInstance()
- {
- return new TestController();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement