コード例 #1
0
 public LocalFileSystemVolume(IConnectorConfig config, ICryptoService cryptoService,
     IImageEditorService imageEditorService)
 {
     _config = config;
     _cryptoService = cryptoService;
     _imageEditorService = imageEditorService;
 }
コード例 #2
0
        public MsSqlVolume(IConnectorConfig config, IImageEditorService imageEditorService,

             ICryptoService cryptoService,
            IUploadFile uploadFile, IKey key, IImageFile imageFile)
        {
            _config = config;
            _imageEditorService = imageEditorService;
            _cryptoService = cryptoService;
            _uploadFile = uploadFile;
            _key = key;
            _imageFile = imageFile;
        }
コード例 #3
0
        public static void RegisterElFinderConnectorServices <TVolumeManager, TImageEditorService, TCryptoService>(this ContainerBuilder builder, IConnectorConfig configInstance)
            where TVolumeManager : IVolumeManager
            where TImageEditorService : IImageEditorService
            where TCryptoService : ICryptoService
        {
            builder.Register(c => configInstance)
            .As <IConnectorConfig>().SingleInstance();

            builder.RegisterType <TVolumeManager>()
            .As <IVolumeManager>().SingleInstance();

            builder.RegisterType <TImageEditorService>()
            .As <IImageEditorService>().SingleInstance();

            builder.RegisterType <TCryptoService>()
            .As <ICryptoService>().SingleInstance();
        }