Example #1
0
        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();
            }
        }
Example #2
0
        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();
            }
        }
Example #3
0
        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();
            }
        }
Example #4
0
        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();
            }
        }