Beispiel #1
0
 public void Invoke(string operation,
                    Ice.OperationMode mode,
                    Ice.FormatType?format,
                    Dictionary <string, string>?context,
                    bool synchronous,
                    System.Action <Ice.OutputStream>?write)
 {
     Debug.Assert(Os != null);
     try
     {
         Prepare(operation, mode, context);
         if (write != null)
         {
             Os.StartEncapsulation(Encoding, format);
             write(Os);
             Os.EndEncapsulation();
         }
         else
         {
             Os.WriteEmptyEncapsulation(Encoding);
         }
         Invoke(operation, synchronous);
     }
     catch (Ice.Exception ex)
     {
         Abort(ex);
     }
 }