mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-19 03:37:38 +03:00
Rename LazyRunner to Once
This commit is contained in:
parent
4da563e102
commit
c07eb719f5
@ -3,11 +3,11 @@ namespace NAPS2.Util;
|
||||
/// <summary>
|
||||
/// Encapsulates an action that should be run once lazily.
|
||||
/// </summary>
|
||||
public class LazyRunner
|
||||
public class Once
|
||||
{
|
||||
private readonly Lazy<object> _lazy;
|
||||
|
||||
public LazyRunner(Action action)
|
||||
public Once(Action action)
|
||||
{
|
||||
_lazy = new Lazy<object>(() =>
|
||||
{
|
@ -23,7 +23,7 @@ internal class LocalTwainSessionController : ITwainSessionController
|
||||
AssemblyHelper.Company, AssemblyHelper.Product, AssemblyHelper.Product, AssemblyHelper.Description);
|
||||
}
|
||||
|
||||
private static readonly LazyRunner TwainDsmSetup = new(() =>
|
||||
private static readonly Once TwainDsmSetup = new(() =>
|
||||
{
|
||||
var twainDsmPath = NativeLibrary.FindLibraryPath("twaindsm.dll");
|
||||
PlatformCompat.System.LoadLibrary(twainDsmPath);
|
||||
|
Loading…
Reference in New Issue
Block a user