|
|
|
|
@ -0,0 +1,28 @@ |
|
|
|
|
// Author: Gockner, Simon |
|
|
|
|
// Created: 2020-02-12 |
|
|
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using GBase.FileHandling; |
|
|
|
|
using GBase.Interfaces.FileHandling; |
|
|
|
|
using GBase.Interfaces.FileHandling.Factories; |
|
|
|
|
using LightweightIocContainer.Interfaces; |
|
|
|
|
using LightweightIocContainer.Interfaces.Installers; |
|
|
|
|
|
|
|
|
|
namespace GBase.Installers |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// <see cref="IIocInstaller"/> for the file handling |
|
|
|
|
/// </summary> |
|
|
|
|
public class FileHandlingInstaller : IIocInstaller |
|
|
|
|
{ |
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
public void Install(IIocContainer container) |
|
|
|
|
{ |
|
|
|
|
container.Register<IFileHandler, FileHandler>(); |
|
|
|
|
|
|
|
|
|
//factories |
|
|
|
|
container.RegisterFactory<IFileHandlerFactory>(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |