コード例 #1
0
 /// <exception cref="Com.Google.Protobuf.ServiceException"/>
 public virtual HAServiceProtocolProtos.TransitionToActiveResponseProto TransitionToActive
     (RpcController controller, HAServiceProtocolProtos.TransitionToActiveRequestProto
     request)
 {
     try
     {
         server.TransitionToActive(Convert(request.GetReqInfo()));
         return(TransitionToActiveResp);
     }
     catch (IOException e)
     {
         throw new ServiceException(e);
     }
 }
コード例 #2
0
 /// <exception cref="System.IO.IOException"/>
 public virtual void TransitionToActive(HAServiceProtocol.StateChangeRequestInfo reqInfo
                                        )
 {
     try
     {
         HAServiceProtocolProtos.TransitionToActiveRequestProto req = ((HAServiceProtocolProtos.TransitionToActiveRequestProto
                                                                        )HAServiceProtocolProtos.TransitionToActiveRequestProto.NewBuilder().SetReqInfo(
                                                                           Convert(reqInfo)).Build());
         rpcProxy.TransitionToActive(NullController, req);
     }
     catch (ServiceException e)
     {
         throw ProtobufHelper.GetRemoteException(e);
     }
 }