History

Updated AdoSecurityProvider to cache last known security context such that security system can initialize without database access.

ritchiecarroll committed 12 years ago

Commit d0046311 parent 1a8fe7514 files · +1042 −427Browse files

Showing the changes to Source/Libraries/GSF.Core/Threading/InterprocessLock.cs (1 of 14 files). Show all

Unified · Split

Source/Libraries/GSF.Core/Threading/InterprocessLock.cs+2−2
@@ -87,7 +87,7 @@ namespace GSF.Threading · 86 unmodified lines
87 // Create a mutex name that is specific to an object (e.g., a path and file name).87 // Create a mutex name that is specific to an object (e.g., a path and file name).
88 // Note that we use GetPasswordHash to create a short common name for the name parameter88 // Note that we use GetPasswordHash to create a short common name for the name parameter
89 // that was passed into the function - this allows the parameter to be very long, e.g.,89 // that was passed into the function - this allows the parameter to be very long, e.g.,
90 // a file path, and still meet minimum semaphore name requirements.90 // a file path, and still meet minimum mutex name requirements.
91 91
92 // Prefix mutex name with "Global\" such that mutex will apply to all active92 // Prefix mutex name with "Global\" such that mutex will apply to all active
93 // application sessions in case terminal services is running.93 // application sessions in case terminal services is running.
@@ -211,7 +211,7 @@ namespace GSF.Threading · 117 unmodified lines
211 catch (UnauthorizedAccessException)211 catch (UnauthorizedAccessException)
212 {212 {
213 // Named semaphore exists now but current user doesn't have full control, attempt to open with minimum needed rights213 // Named semaphore exists now but current user doesn't have full control, attempt to open with minimum needed rights
214 namedSemaphore = Semaphore.OpenExisting(name, SemaphoreRights.Synchronize | SemaphoreRights.Modify);214 namedSemaphore = Semaphore.OpenExisting(semaphoreName, SemaphoreRights.Synchronize | SemaphoreRights.Modify);
215 }215 }
216 }216 }
217#endif217#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t