mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Remove use of "async" (future C# keyword)
Work Item: 16709 --HG-- branch : dev
This commit is contained in:
@@ -101,13 +101,13 @@ namespace Orchard.Tests.Mvc {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Assert.That(where, Is.EqualTo("init"));
|
Assert.That(where, Is.EqualTo("init"));
|
||||||
var async = action.BeginInvoke(null, null);
|
var asyncResult = action.BeginInvoke(null, null);
|
||||||
Thread.Sleep(75);
|
Thread.Sleep(75);
|
||||||
Assert.That(where, Is.EqualTo("before"));
|
Assert.That(where, Is.EqualTo("before"));
|
||||||
readLock.Dispose();
|
readLock.Dispose();
|
||||||
Thread.Sleep(75);
|
Thread.Sleep(75);
|
||||||
Assert.That(where, Is.EqualTo("after"));
|
Assert.That(where, Is.EqualTo("after"));
|
||||||
action.EndInvoke(async);
|
action.EndInvoke(asyncResult);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user