示例#1
0
		public Stream OpenBaseVersion(string fileName)
		{
			if (!SvnClientWrapper.IsInSourceControl(fileName))
				return null;
			
			using (SvnClientWrapper client = new SvnClientWrapper())
				return client.OpenBaseVersion(fileName);
		}
示例#2
0
        public Stream OpenBaseVersion(string fileName)
        {
            if (!SvnClientWrapper.IsInSourceControl(fileName))
            {
                return(null);
            }

            using (SvnClientWrapper client = new SvnClientWrapper())
                return(client.OpenBaseVersion(fileName));
        }
示例#3
0
		public Task<Stream> OpenBaseVersionAsync(FileName fileName)
		{
			return Task.Run(() => {
				if (!SvnClientWrapper.IsInSourceControl(fileName))
					return null;
				
				using (SvnClientWrapper client = new SvnClientWrapper())
					return client.OpenBaseVersion(fileName);
			});
		}
        public Task <Stream> OpenBaseVersionAsync(FileName fileName)
        {
            return(Task.Run(() => {
                if (!SvnClientWrapper.IsInSourceControl(fileName))
                {
                    return null;
                }

                using (SvnClientWrapper client = new SvnClientWrapper())
                    return client.OpenBaseVersion(fileName);
            }));
        }