/// <exception cref="System.IO.IOException"/> public virtual QJournalProtocolProtos.NewEpochResponseProto NewEpoch(string jid, NamespaceInfo nsInfo, long epoch) { try { QJournalProtocolProtos.NewEpochRequestProto req = ((QJournalProtocolProtos.NewEpochRequestProto )QJournalProtocolProtos.NewEpochRequestProto.NewBuilder().SetJid(ConvertJournalId (jid)).SetNsInfo(PBHelper.Convert(nsInfo)).SetEpoch(epoch).Build()); return(rpcProxy.NewEpoch(NullController, req)); } catch (ServiceException e) { throw ProtobufHelper.GetRemoteException(e); } }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual QJournalProtocolProtos.NewEpochResponseProto NewEpoch(RpcController controller, QJournalProtocolProtos.NewEpochRequestProto request) { try { return(impl.NewEpoch(request.GetJid().GetIdentifier(), PBHelper.Convert(request.GetNsInfo ()), request.GetEpoch())); } catch (IOException ioe) { throw new ServiceException(ioe); } }