Example #1
0
 public IDesktopContext Build(string filePath)
 {
     return(new DesktopContext(
                _dateTimeProvider.GetNowUtc(),
                _desktopServiceSettings.OutputDirectory,
                filePath,
                _assemblyService.GetExecutingAssemblyPath(),
                string.Concat(ReferenceDataConstants.FilePath, _desktopServiceSettings.ReferenceDataVersion, ReferenceDataConstants.FileExtension),
                _desktopServiceSettings.IlrDatabaseConnectionString,
                _releaseVersionInformationService.VersionNumber,
                _reportFilterService.GetReportFilterQueries()));
 }
Example #2
0
 public IDesktopContext Build(ICommandLineArguments commandLineArguments)
 {
     _desktopSettingsDefaultsService.CheckDefaults(commandLineArguments);
     return(new DesktopContext(
                _dateTimeProvider.GetNowUtc(),
                OverrideConfig(commandLineArguments.OutputDirectory, _desktopServiceSettings.OutputDirectory),
                commandLineArguments.FilePath,
                _assemblyService.GetExecutingAssemblyPath(),
                string.Concat(ReferenceDataConstants.FilePath, _desktopServiceSettings.ReferenceDataVersion, ReferenceDataConstants.FileExtension),
                OverrideConfig(commandLineArguments.ConnectionString, _desktopServiceSettings.IlrDatabaseConnectionString),
                _releaseVersionInformationService.VersionNumber,
                Enumerable.Empty <IDesktopContextReportFilterQuery>()));
 }