public MicroServicesOrchestrator(ILogger <MicroServicesOrchestrator> logger, IHttpClientFactory httpClientFactory, Configuration.PalaceSettings palaceSettings) { this.Logger = logger; this.HttpClientFactory = httpClientFactory; this.PalaceSettings = palaceSettings; }
public MicroServicesCollectionManager(Configuration.PalaceSettings palaceSettings, ILogger <MicroServicesCollectionManager> logger, IHttpClientFactory httpClientFactory) { this.PalaceSettings = palaceSettings; this.Logger = logger; this.HttpClientFactory = httpClientFactory; _list = new System.Collections.Concurrent.ConcurrentDictionary <string, Models.MicroServiceSettings>(); }
public Starter(Configuration.PalaceSettings palaceSettings, ILogger <Starter> logger, IMicroServicesOrchestrator orchestrator, MicroServicesCollectionManager microServicesCollection, INotificationService notificationService) { this.PalaceSettings = palaceSettings; this.Logger = logger; this.Orchestrator = orchestrator; this.MicroServicesCollection = microServicesCollection; this.NotificationService = notificationService; }
public static void Initialize(this Configuration.PalaceSettings palaceSettings) { var currentDirectory = System.IO.Path.GetDirectoryName(typeof(Program).Assembly.Location); if (palaceSettings.BackupDirectory.StartsWith(@".\")) { palaceSettings.BackupDirectory = System.IO.Path.Combine(currentDirectory, palaceSettings.BackupDirectory.Replace(@".\", string.Empty)); } if (palaceSettings.UpdateDirectory.StartsWith(@".\")) { palaceSettings.UpdateDirectory = System.IO.Path.Combine(currentDirectory, palaceSettings.UpdateDirectory.Replace(@".\", string.Empty)); } if (palaceSettings.DownloadDirectory.StartsWith(@".\")) { palaceSettings.DownloadDirectory = System.IO.Path.Combine(currentDirectory, palaceSettings.DownloadDirectory.Replace(@".\", string.Empty)); } if (palaceSettings.InstallationDirectory.StartsWith(@".\")) { palaceSettings.InstallationDirectory = System.IO.Path.Combine(currentDirectory, palaceSettings.InstallationDirectory.Replace(@".\", string.Empty)); } }
public SmtpNotificationService(Configuration.SmtpSettings smtpSettings, Configuration.PalaceSettings palaceSettings) { this.SmtpSettings = smtpSettings; this.PalaceSettings = palaceSettings; }