示例#1
0
 private static void OnResponse(System.Int32 requestId,
                                System.IntPtr responseBlob,
                                System.IntPtr responseState,
                                System.IntPtr requestBlob,
                                System.IntPtr requestState,
                                System.IntPtr consumer,
                                out byte success)
 {
     success = Interface.ByteOf(false);
     try
     {
         using (ResponseProxy proxy = new ResponseProxy(requestId, responseBlob, responseState, requestBlob, requestState))
         {
             Requestor requestor = (Requestor)ConsumerHandler.ToConsumer(consumer);
             ConsumerHandler.Instance.DropReference(requestor);
             requestor.OnResponse(proxy);
         }
         success = Interface.ByteOf(true);
     }
     catch (System.Exception exc)
     {
         Typesystem.LibraryExceptions.Instance.Set(exc);
     }
 }