Example #1
0
        public WF_ProcessRecordings(
            ILogger <WF_ProcessReceivedFiles> _logger,
            IOptions <AppSettings> _config,
            RecordingProcess _processRecording,
            IGovBodyRepository _govBodyRepository,
            IMeetingRepository _meetingRepository
            )
        {
            config = _config.Value;

            // Google Cloud libraries automatically use the environment variable GOOGLE_APPLICATION_CREDENTIALS
            // to authenticate to Google Cloud. Here we set this variable to the path of the credentials file,
            // which is defined in app.settings.json.
            string credentialsFilePath = config.GoogleApplicationCredentials;

            Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", credentialsFilePath);

            logger            = _logger;
            processRecording  = _processRecording;
            meetingRepository = _meetingRepository;
            govBodyRepository = _govBodyRepository;
        }
Example #2
0
 public void StopRecording()
 {
     RecordingProcess.Kill();
 }