mirror of
https://github.com/cyanfish/naps2.git
synced 2024-11-11 02:45:19 +03:00
29 lines
819 B
C#
29 lines
819 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NAPS2.Automation;
|
|
using NAPS2.Dependencies;
|
|
using NAPS2.ImportExport.Pdf;
|
|
using NAPS2.Operation;
|
|
using NAPS2.Images;
|
|
using NAPS2.Util;
|
|
using Ninject;
|
|
using Ninject.Modules;
|
|
|
|
namespace NAPS2.DI.Modules
|
|
{
|
|
public class ConsoleModule : NinjectModule
|
|
{
|
|
public override void Load()
|
|
{
|
|
Bind<IPdfPasswordProvider>().To<ConsolePdfPasswordProvider>();
|
|
Bind<IErrorOutput>().To<ConsoleErrorOutput>();
|
|
Bind<IOverwritePrompt>().To<ConsoleOverwritePrompt>();
|
|
Bind<OperationProgress>().To<ConsoleOperationProgress>();
|
|
Bind<IComponentInstallPrompt>().To<ConsoleComponentInstallPrompt>();
|
|
|
|
OperationProgress.Default = Kernel.Get<OperationProgress>();
|
|
}
|
|
}
|
|
}
|