예제 #1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("OnDisconnect", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateEasySphynxClient_0(SwigDirectorOnDisconnect);
     }
     if (SwigDerivedClassHasMethod("OnConnectFailure", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateEasySphynxClient_1(SwigDirectorOnConnectFailure);
     }
     if (SwigDerivedClassHasMethod("OnConnectSuccess", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateEasySphynxClient_2(SwigDirectorOnConnectSuccess);
     }
     if (SwigDerivedClassHasMethod("OnMessageArrivals", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateEasySphynxClient_3(SwigDirectorOnMessageArrivals);
     }
     SphynxPINVOKE.EasySphynxClient_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3);
 }
예제 #2
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("OnDisconnect", swigMethodTypes0))
       swigDelegate0 = new SwigDelegateEasySphynxClient_0(SwigDirectorOnDisconnect);
     if (SwigDerivedClassHasMethod("OnConnectFailure", swigMethodTypes1))
       swigDelegate1 = new SwigDelegateEasySphynxClient_1(SwigDirectorOnConnectFailure);
     if (SwigDerivedClassHasMethod("OnConnectSuccess", swigMethodTypes2))
       swigDelegate2 = new SwigDelegateEasySphynxClient_2(SwigDirectorOnConnectSuccess);
     if (SwigDerivedClassHasMethod("OnMessageArrivals", swigMethodTypes3))
       swigDelegate3 = new SwigDelegateEasySphynxClient_3(SwigDirectorOnMessageArrivals);
     SphynxPINVOKE.EasySphynxClient_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3);
 }