Beispiel #1
0
 private void OnConnectionStateChange(
     OamCallbackMessage message,
     int Flags,
     int referenceCount,
     byte[] buffer,
     DateTime timeStamp,
     TimeSpan elapsedTime,
     object oamSource,
     object ClientSource)
 {
     Reflector.RunInstanceMethodByName(DebugDevice, "OnConnectionStateChange",
                                       ReflectionWays.SystemReflection,
                                       message,
                                       Flags,
                                       referenceCount,
                                       buffer,
                                       timeStamp,
                                       elapsedTime,
                                       oamSource,
                                       ClientSource);
 }
 public void OnOamInfoCallback(
     OamCallbackMessage message,
     int Flags,
     int referenceCount,
     byte[] buffer,
     DateTime timeStamp,
     TimeSpan elapsedTime,
     object oamSource,
     object ClientSource)
 {
     //Console.WriteLine($"OamInfoEventProxy.OnOamInfoCallback() {message} {Flags} {referenceCount} {timeStamp} {elapsedTime}");
     if (OnCallback != null)
     {
         OamClientInfoEventArgs      args      = new OamClientInfoEventArgs(message, Flags, referenceCount, buffer, timeStamp, elapsedTime);
         OamClientInfoEventArgsProxy argsProxy = new OamClientInfoEventArgsProxy(args);
         argsProxy.Buffer       = buffer;
         argsProxy.OamSource    = oamSource;
         argsProxy.ClientSource = ClientSource;
         OnCallback(this, argsProxy);
     }
 }