SCLoader/InstanceLock.cs
/// <summary>
/// Releases the lock from the specified storage
/// Stops trying to apply a lock if not applied yet
/// </summary>
Releases the lock from the specified storage
Stops trying to apply a lock if not applied yet
Releases the lock from the specified storage Stops trying to apply a lock if not applied yet
public void Release()
        {
            if (!this.lockApplyTask.IsCompleted)
            {
                this.CancellationTokenSource.Cancel();
                this.lockApplyTask.Wait(1000);
            }
            else
            {
                this.StorageProvider.ReleaseInstanceLock();
            }
        }
public void Release ( ) { if ( ! this . lockApplyTask . IsCompleted ) { this . CancellationTokenSource . Cancel ( ) ; this . lockApplyTask . Wait ( 1000 ) ; } else { this . StorageProvider . ReleaseInstanceLock ( ) ; } }
Releases the lock from the specified storage
Stops trying to apply a lock if not applied yet
Releases the lock from the specified storage Stops trying to apply a lock if not applied yet
// Lock was not applied yet