/// <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); } }
/// <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); } }