Skip to content

Commit f76077c

Browse files
committed
Rename methods to follow Pascal Case
1 parent e9b0e04 commit f76077c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/GitVersionCore/FileLocking/LockFileApi.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public bool TryAcquire(string filePath, out FileStream? fileStream, FileMode fil
7575
return fileStream;
7676
}
7777

78-
private bool waitUntilAcquired(string filePath, out FileStream? fileStream, FileMode fileMode,
78+
private bool WaitUntilAcquired(string filePath, out FileStream? fileStream, FileMode fileMode,
7979
FileAccess fileAccess, FileShare fileShare, int timeoutInMilliseconds, bool throwOnTimeout)
8080
{
8181
FileStream? spinningFileStream = null;
@@ -98,10 +98,10 @@ private bool waitUntilAcquired(string filePath, out FileStream? fileStream, File
9898
return false;
9999
}
100100

101-
private FileStream? waitUntilAcquired(string filePath, FileMode fileMode,
101+
private FileStream? WaitUntilAcquired(string filePath, FileMode fileMode,
102102
FileAccess fileAccess, FileShare fileShare, int timeoutInMilliseconds, bool noThrowOnTimeout)
103103
{
104-
waitUntilAcquired(filePath, out var fileStream, fileMode, fileAccess, fileShare, timeoutInMilliseconds, !noThrowOnTimeout);
104+
WaitUntilAcquired(filePath, out var fileStream, fileMode, fileAccess, fileShare, timeoutInMilliseconds, !noThrowOnTimeout);
105105
return fileStream;
106106
}
107107

@@ -119,7 +119,7 @@ public bool WaitUntilAcquired(string filePath, out FileStream? fileStream, FileM
119119
FileAccess fileAccess = DefaultFileAccess, FileShare fileShare = DefaultFileShare, bool throwOnTimeout = false)
120120
{
121121
var timeoutInMilliseconds = DefaultTimeoutInMilliseconds;
122-
return waitUntilAcquired(filePath, out fileStream, fileMode, fileAccess, fileShare, timeoutInMilliseconds, throwOnTimeout);
122+
return WaitUntilAcquired(filePath, out fileStream, fileMode, fileAccess, fileShare, timeoutInMilliseconds, throwOnTimeout);
123123
}
124124

125125
/// <summary>
@@ -135,7 +135,7 @@ public bool WaitUntilAcquired(string filePath, out FileStream? fileStream, FileM
135135
FileAccess fileAccess = DefaultFileAccess, FileShare fileShare = DefaultFileShare, bool noThrowOnTimeout = false)
136136
{
137137
var timeoutInMilliseconds = DefaultTimeoutInMilliseconds;
138-
return waitUntilAcquired(filePath, fileMode, fileAccess, fileShare, timeoutInMilliseconds, noThrowOnTimeout);
138+
return WaitUntilAcquired(filePath, fileMode, fileAccess, fileShare, timeoutInMilliseconds, noThrowOnTimeout);
139139
}
140140

141141
/// <summary>
@@ -151,7 +151,7 @@ public bool WaitUntilAcquired(string filePath, out FileStream? fileStream, FileM
151151
/// <returns>If true the lock acquirement was successful.</returns>
152152
public bool WaitUntilAcquired(string filePath, int timeoutInMilliseconds, out FileStream? fileStream, FileMode fileMode = DefaultFileMode,
153153
FileAccess fileAccess = DefaultFileAccess, FileShare fileShare = DefaultFileShare, bool throwOnTimeout = false) =>
154-
waitUntilAcquired(filePath, out fileStream, fileMode, fileAccess, fileShare, timeoutInMilliseconds, throwOnTimeout);
154+
WaitUntilAcquired(filePath, out fileStream, fileMode, fileAccess, fileShare, timeoutInMilliseconds, throwOnTimeout);
155155

156156
/// <summary>
157157
/// Wait until file gets acquired lock but only as long the file stream is opened.
@@ -165,7 +165,7 @@ public bool WaitUntilAcquired(string filePath, int timeoutInMilliseconds, out Fi
165165
/// <returns>If not null the lock acquirement was successful.</returns>
166166
public FileStream? WaitUntilAcquired(string filePath, int timeoutInMilliseconds, FileMode fileMode = DefaultFileMode,
167167
FileAccess fileAccess = DefaultFileAccess, FileShare fileShare = DefaultFileShare, bool noThrowOnTimeout = false) =>
168-
waitUntilAcquired(filePath, fileMode, fileAccess, fileShare, timeoutInMilliseconds, noThrowOnTimeout);
168+
WaitUntilAcquired(filePath, fileMode, fileAccess, fileShare, timeoutInMilliseconds, noThrowOnTimeout);
169169

170170
/// <summary>
171171
/// Wait until file gets acquired lock but only as long the file stream is opened.
@@ -182,7 +182,7 @@ public bool WaitUntilAcquired(string filePath, TimeSpan timeout, out FileStream?
182182
FileAccess fileAccess = DefaultFileAccess, FileShare fileShare = DefaultFileShare, bool throwOnTimeout = false)
183183
{
184184
var timeoutInMilliseconds = Convert.ToInt32(timeout.TotalMilliseconds);
185-
return waitUntilAcquired(filePath, out fileStream, fileMode, fileAccess, fileShare, timeoutInMilliseconds, throwOnTimeout);
185+
return WaitUntilAcquired(filePath, out fileStream, fileMode, fileAccess, fileShare, timeoutInMilliseconds, throwOnTimeout);
186186
}
187187

188188
/// <summary>
@@ -199,7 +199,7 @@ public bool WaitUntilAcquired(string filePath, TimeSpan timeout, out FileStream?
199199
FileAccess fileAccess = DefaultFileAccess, FileShare fileShare = DefaultFileShare, bool noThrowOnTimeout = false)
200200
{
201201
var timeoutInMilliseconds = Convert.ToInt32(timeout.TotalMilliseconds);
202-
return waitUntilAcquired(filePath, fileMode, fileAccess, fileShare, timeoutInMilliseconds, noThrowOnTimeout);
202+
return WaitUntilAcquired(filePath, fileMode, fileAccess, fileShare, timeoutInMilliseconds, noThrowOnTimeout);
203203
}
204204
}
205205
}

0 commit comments

Comments
 (0)