SimpleContainer dependency injection system implemented
This commit is contained in:
20
PictureHandling/ProgramModule.cs
Normal file
20
PictureHandling/ProgramModule.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using Autofac;
|
||||
using ImageHandlingLibrary;
|
||||
using ImageHandlingLibrary.InterFaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PictureHandling
|
||||
{
|
||||
class ProgramModule : Module
|
||||
{
|
||||
protected override void Load(ContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterType<Registring>().As<IRegistring>();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user