public static void RegisterCpuUsageHandler(ICpuUsageHandler handler) { if (dynamicLoadBalancing == false) { return; } CpuUsageHandlers.Add(new WeakReference <ICpuUsageHandler>(handler)); }
public static void RegisterCpuUsageHandler(ICpuUsageHandler handler) { if (dynamicLoadBalancing == false) return; CpuUsageHandlers.Add(new WeakReference<ICpuUsageHandler>(handler)); }