static async Task Main(string[] args)
 {
     await VideoFileService.ProcessFile(
         new Microsoft.Azure.WebJobs.ExecutionContext {
         FunctionAppDirectory = Directory.GetCurrentDirectory()
     },
         DateTime.Now.AddDays(-6)
         ).ConfigureAwait(false);
 }
Beispiel #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            KernelConfig.RegisterInstance <IWindowsVolumeListenerService>(new WindowsVolumeListenerService());

            var encryptionService = new EncryptionService();
            var videoFileService  = new VideoFileService();

            KernelConfig.RegisterInstance <IWindowService>(new WindowService());
            KernelConfig.RegisterInstance <IEncryptionService>(encryptionService);
            KernelConfig.RegisterInstance <IVideoFileService>(videoFileService);
            KernelConfig.RegisterInstance <IConfigurationFileService>(new ConfigurationFileService(encryptionService, videoFileService));

            KernelConfig.RegisterInstance();
            base.OnStartup(e);
        }