示例#1
0
 /// <exception cref="System.IO.IOException"/>
 public virtual void RemoveSpanReceiver(long spanReceiverId)
 {
     try
     {
         TraceAdminPB.RemoveSpanReceiverRequestProto req = ((TraceAdminPB.RemoveSpanReceiverRequestProto
                                                             )TraceAdminPB.RemoveSpanReceiverRequestProto.NewBuilder().SetId(spanReceiverId).
                                                            Build());
         rpcProxy.RemoveSpanReceiver(null, req);
     }
     catch (ServiceException e)
     {
         throw ProtobufHelper.GetRemoteException(e);
     }
 }
 /// <exception cref="Com.Google.Protobuf.ServiceException"/>
 public virtual TraceAdminPB.RemoveSpanReceiverResponseProto RemoveSpanReceiver(RpcController
                                                                                controller, TraceAdminPB.RemoveSpanReceiverRequestProto req)
 {
     try
     {
         server.RemoveSpanReceiver(req.GetId());
         return(TraceAdminPB.RemoveSpanReceiverResponseProto.GetDefaultInstance());
     }
     catch (IOException e)
     {
         throw new ServiceException(e);
     }
 }