예제 #1
0
 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>();
 }
예제 #3
0
 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;
 }
예제 #4
0
        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));
            }
        }
예제 #5
0
 public SmtpNotificationService(Configuration.SmtpSettings smtpSettings,
                                Configuration.PalaceSettings palaceSettings)
 {
     this.SmtpSettings   = smtpSettings;
     this.PalaceSettings = palaceSettings;
 }