Skip to content

Commit 568fc0a

Browse files
committed
2 parents 885a451 + aae6d6a commit 568fc0a

27 files changed

+219
-106
lines changed
0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.

TeamCoding.Shared/Documents/SourceControlRepositories/ISourceControlRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
public interface ISourceControlRepository
44
{
55
DocumentRepoMetaData GetRepoDocInfo(string fullFilePath);
6-
int? GetLineNumber(string fullFilePath, int fileLineNumber, FileNumberBasis targetBasis);
6+
string[] GetRemoteFileLines(string fullFilePath);
77
}
88
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace TeamCoding.Extensions
9+
{
10+
public static class StreamExtensions
11+
{
12+
public static string ReadAlltext(this Stream stream)
13+
{
14+
using(var sr = new StreamReader(stream))
15+
{
16+
return sr.ReadToEnd();
17+
}
18+
}
19+
}
20+
}

TeamCoding.Shared/TeamCoding.Shared.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
<Compile Include="Extensions\DictionaryExtensions.cs" />
8282
<Compile Include="Extensions\EnumerableExtensions.cs" />
8383
<Compile Include="Extensions\ITextBufferExtensions.cs" />
84+
<Compile Include="Extensions\StreamExtensions.cs" />
8485
<Compile Include="Extensions\StringExtensions.cs" />
8586
<Compile Include="IdentityManagement\IUserIdentity.cs" />
8687
<Compile Include="IntArrayEqualityComparer.cs" />

0 commit comments

Comments
 (0)