naps2/NAPS2.Lib.Common/Modules/ConsoleModule.cs
2018-12-03 20:45:22 -05:00

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>();
}
}
}