static CompilationLock() { // Create the mutex (or just get it if another process created it). // Make the mutex unique per application int hashCode = ("CompilationLock" + HttpRuntime.AppDomainAppId.ToLower(CultureInfo.InvariantCulture)).GetHashCode(); _mutex = new CompilationMutex( "CL" + hashCode.ToString("x", CultureInfo.InvariantCulture), "CompilationLock for " + HttpRuntime.AppDomainAppVirtualPath); }
static PreservedAssemblyEntry() { // Make the mutex unique per application int hashCode = ("PreservedAssemblyEntry" + HttpRuntime.AppDomainAppIdInternal).GetHashCode(); _mutex = new CompilationMutex( false, "PAE" + hashCode.ToString("x"), "PreservedAssemblyEntry lock for " + HttpRuntime.AppDomainAppVirtualPath); }
static CompilationLock() { // Create the mutex (or just get it if another process created it). // Make the mutex unique per application int hashCode = ("CompilationLock" + HttpRuntime.AppDomainAppIdInternal).GetHashCode(); _mutex = new CompilationMutex( false, "CL" + hashCode.ToString("x"), "CompilationLock for " + HttpRuntime.AppDomainAppVirtualPath); }
static CompilationLock() { int hashCode = ("CompilationLock" + HttpRuntime.AppDomainAppIdInternal.ToLower(CultureInfo.InvariantCulture)).GetHashCode(); _mutex = new CompilationMutex("CL" + hashCode.ToString("x", CultureInfo.InvariantCulture), "CompilationLock for " + HttpRuntime.AppDomainAppVirtualPath); }
static CompilationLock() { int hashCode = ("CompilationLock" + HttpRuntime.AppDomainAppIdInternal.ToLower(CultureInfo.InvariantCulture)).GetHashCode(); _mutex = new CompilationMutex("CL" + hashCode.ToString("x", CultureInfo.InvariantCulture), "CompilationLock for " + HttpRuntime.AppDomainAppVirtualPath); }
static CompilationLock() { // Create the mutex (or just get it if another process created it). // Make the mutex unique per application int hashCode = StringUtil.GetNonRandomizedHashCode("CompilationLock" + HttpRuntime.AppDomainAppId.ToLower(CultureInfo.InvariantCulture)); _mutex = new CompilationMutex( "CL" + hashCode.ToString("x", CultureInfo.InvariantCulture), "CompilationLock for " + HttpRuntime.AppDomainAppVirtualPath); }