public void ResetData(string address, string dataBaseName) { var service = RuntimeServiceFactory.CreateServiceClient(address); service.Open(); try { var result = service.ResetData(dataBaseName); result.Validate(); } finally { service.Close(); } }
public long GetRevision(string address, string dataBaseName) { var service = RuntimeServiceFactory.CreateServiceClient(address); service.Open(); try { var result = service.GetRevision(dataBaseName); result.Validate(); return(result.Value); } finally { service.Close(); } }
public Tuple <GenerationSet, SerializationSet> GetMetaData(string address, string dataBaseName, string tags, string filterExpression, bool isDevmode, long revision) { var service = RuntimeServiceFactory.CreateServiceClient(address); service.Open(); try { var result = service.GetMetaData(dataBaseName, tags, filterExpression, isDevmode, revision); result.Validate(); return(new Tuple <GenerationSet, SerializationSet>(result.Value1, result.Value2)); } finally { service.Close(); } }
public GenerationSet GetCodeGenerationData(string address, string dataBaseName, string tags, string filterExpression, long revision) { var service = RuntimeServiceFactory.CreateServiceClient(address); service.Open(); try { var result = service.GetCodeGenerationData(dataBaseName, tags, filterExpression, revision); result.Validate(); return(result.Value); } finally { service.Close(); } }