private static void _LoadSubscription(Configuration configHandled) { var configSubscriptions = configHandled.subscriptions ?? new List <Subscription>(); configSubscriptions = configSubscriptions.Distinct().ToList(); foreach (var configSubscription in configSubscriptions) { configSubscription.configuration = configHandled; var count = 0; foreach (var server in configHandled.configs) { if (server.subscriptionURLSartup == configSubscription.url) { server.SetSubscription(configSubscription); server.subscriptionURLSartup = null; count++; } } if (count == 0) { configSubscription.url = null; } count = 0; } configSubscriptions.RemoveAll(it => it.url == null); configHandled.ArrangeConfig(); }
private static void LoadSubscription(Configuration configSubscription) { var configSubscriptions = configSubscription.subscriptions; if (configSubscriptions == null) { configSubscriptions = new List <Subscription>(); } configSubscription.ArrangeConfig(); }
private static void _LoadSubscription(Configuration configHandled) { //Subscription var configSubscriptions = configHandled.subscriptions; if (configSubscriptions == null) { configSubscriptions = new List <Subscription>(); } configHandled.ArrangeConfig(); }
private static void _ArrangeBeforeSave(Configuration config) { config.ArrangeConfig(); }