public static void ClearPriority(int priority) { try { if (!IsConnected()) { return; } var clearRequest = ClearRequest.CreateBuilder() .SetPriority(priority) .Build(); var request = HyperionRequest.CreateBuilder() .SetCommand(HyperionRequest.Types.Command.CLEAR) .SetExtension(ClearRequest.ClearRequest_, clearRequest) .Build(); SendRequest(request); } catch (Exception ex) { Notifications.Error($"Failed to clear priority.{ex.Message}"); } }
public void ClearPriority(int priority) { try { if (!IsConnected()) { return; } if (priority == coreObject.hyperionPriority) { _priorityCleared = true; } ClearRequest clearRequest = ClearRequest.CreateBuilder() .SetPriority(priority) .Build(); HyperionRequest request = HyperionRequest.CreateBuilder() .SetCommand(HyperionRequest.Types.Command.CLEAR) .SetExtension(ClearRequest.ClearRequest_, clearRequest) .Build(); SendRequest(request); } catch (Exception e) { Log.Error(string.Format("HyperionHandler - {0}", "Error clearing priority")); Log.Error(string.Format("HyperionHandler - {0}", e.Message)); } }
protected override void SendClearPriorityMessage() { var clearRequest = ClearRequest.CreateBuilder() .SetPriority(_priority) .Build(); var request = HyperionRequest.CreateBuilder() .SetCommand(HyperionRequest.Types.Command.CLEAR) .SetExtension(ClearRequest.ClearRequest_, clearRequest) .Build(); SendRequest(request); }
private void ClearPriority() { if (!IsConnected()) { return; } var clearRequest = ClearRequest.CreateBuilder() .SetPriority(_priority) .Build(); var request = HyperionRequest.CreateBuilder() .SetCommand(HyperionRequest.Types.Command.CLEAR) .SetExtension(ClearRequest.ClearRequest_, clearRequest) .Build(); SendRequest(request); }
public void ClearPriority(int priority) { try { if (!IsConnected()) { return; } ClearRequest clearRequest = ClearRequest.CreateBuilder() .SetPriority(priority) .Build(); HyperionRequest request = HyperionRequest.CreateBuilder() .SetCommand(HyperionRequest.Types.Command.CLEAR) .SetExtension(ClearRequest.ClearRequest_, clearRequest) .Build(); SendRequest(request); } catch (Exception) { } }