/// <summary> /// 初始化任务分配算法器 /// </summary> /// <param name="col"></param> /// <param name="defaultProvider"></param> private static string InitTaskAllocAlgProvider(TaskAllocAlgProviderCollection col, string defaultProvider) { StringBuilder sb = new StringBuilder(); if (col != null && col.Count > 0) { foreach (TaskAllocAlgProviderElement t in col) { sb.Append(t); TaskAllocAlgProviderManager.Add(t.Name, t.Type, t.Name.Equals(defaultProvider)); } } return(sb.ToString()); }
private static string InitProvider(string settingName) { return(TaskAllocAlgProviderManager.GetProvider(settingName)); }