private static void ResetCircuitHandler(CircuitName message) { if (string.IsNullOrEmpty(message.ToString())) return; ResetCircuit(message.ToString()); }
/// <summary> /// Management bus handler - Get circuit state. /// </summary> /// <param name="message"></param> private static void GetCircuitState(CircuitName message) { var status = GetState(message.ToString()); var circuitStatus = new CircuitStatus(_managementBusClient.ClientId, message.ToString(), status, DateTimeOffset.Now); _managementBusClient.SendMessage(ManagementBus_StateChange_Topic, circuitStatus); }