Пример #1
0
            public void storagePoints_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                storagePoints_args args = new storagePoints_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                storagePoints_result result = new storagePoints_result();

                try
                {
                    result.Success = iface_.storagePoints();
                    oprot.WriteMessageBegin(new TMessage("storagePoints", TMessageType.Reply, seqid));
                    result.Write(oprot);
                }
                catch (TTransportException)
                {
                    throw;
                }
                catch (Exception ex)
                {
                    Console.Error.WriteLine("Error occurred in processor:");
                    Console.Error.WriteLine(ex.ToString());
                    TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error.");
                    oprot.WriteMessageBegin(new TMessage("storagePoints", TMessageType.Exception, seqid));
                    x.Write(oprot);
                }
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Пример #2
0
            public void send_storagePoints()
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("storagePoints", TMessageType.Call, seqid_));
                storagePoints_args args = new storagePoints_args();

                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }