Exemplo n.º 1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("onTick", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateApplication_0(SwigDirectoronTick);
     }
     if (SwigDerivedClassHasMethod("onLogin", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateApplication_1(SwigDirectoronLogin);
     }
     if (SwigDerivedClassHasMethod("onLogout", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateApplication_2(SwigDirectoronLogout);
     }
     if (SwigDerivedClassHasMethod("onExecutionReport", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateApplication_3(SwigDirectoronExecutionReport);
     }
     if (SwigDerivedClassHasMethod("onLoadInstrumentEnd", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegateApplication_4(SwigDirectoronLoadInstrumentEnd);
     }
     ContextModulePINVOKE.Application_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
 }
Exemplo n.º 2
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("onTick", swigMethodTypes0))
       swigDelegate0 = new SwigDelegateApplication_0(SwigDirectoronTick);
     if (SwigDerivedClassHasMethod("onLogin", swigMethodTypes1))
       swigDelegate1 = new SwigDelegateApplication_1(SwigDirectoronLogin);
     if (SwigDerivedClassHasMethod("onLogout", swigMethodTypes2))
       swigDelegate2 = new SwigDelegateApplication_2(SwigDirectoronLogout);
     if (SwigDerivedClassHasMethod("onExecutionReport", swigMethodTypes3))
       swigDelegate3 = new SwigDelegateApplication_3(SwigDirectoronExecutionReport);
     if (SwigDerivedClassHasMethod("onLoadInstrumentEnd", swigMethodTypes4))
       swigDelegate4 = new SwigDelegateApplication_4(SwigDirectoronLoadInstrumentEnd);
     ContextModulePINVOKE.Application_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
 }