Пример #1
0
        public IDGJob(ILifetimeScope lifetimeScope)
        {
            // Create a lifetime scope for the hub.
            _hubLifetimeScope = lifetimeScope.BeginLifetimeScope("AutofacWebRequest");

            // Resolve dependencies from the hub lifetime scope.
            this._IFileEncryptionOrchestrator = _hubLifetimeScope.Resolve <IFileEncryptionOrchestrator>();
        }
Пример #2
0
 public HomeController(IFileEncryptionOrchestrator IFileEncryptionOrchestrator)
 {
     this._IFileEncryptionOrchestrator = IFileEncryptionOrchestrator;
 }
 public FileEncryptController(IFileEncryptionOrchestrator FileEncryptionOrchestrator)
 {
     this._fileEncryptionOrchestrator = FileEncryptionOrchestrator;
 }