public static void ServiceBusTransportRepairEventsFunc( [ServiceBusTrigger("%serviceBusTopicName%", "%serviceBusTransportSubscription%", AccessRights.Manage, Connection = "serviceBus")] RepairRequest request, TraceWriter log) { log.Warning($"Repair Request. Class: {request.ShipClass} \r\n {MessageUtility.GetShipAscii(request.ShipClass)} "); }
public static void ServiceBusFighterRepairEventsFunc( [ServiceBusTrigger("%serviceBusTopicName%", "%serviceBusFighterSubscription%", AccessRights.Manage, Connection = "serviceBus")] RepairRequest message, TraceWriter log) { try { log.Error($"Repair Request. Class: {message.ShipClass} \r\n {MessageUtility.GetShipAscii(message.ShipClass)} "); } catch (Exception ex) { log.Error(ex.ToString()); } }
public static void Run( [EventHubTrigger("%telemetryHubName%", Connection = "telemetryHub")] ShipTelemetry[] shipTelemetry, TraceWriter log) { for (int count = 0; count < shipTelemetry.Length; count++) { log.Warning($"Repair Request. Class: {shipTelemetry[count].ShipClass} \r\n {MessageUtility.GetShipAscii(shipTelemetry[count].ShipClass)} "); } }
public static void Run( [QueueTrigger("%SpaceWarsStorageQueue%", Connection = "SpaceWarsStorage")] MaintenanceCheckRequest request, TraceWriter log) { log.Warning($"Maintenance Request. Designation: {request.ShipDesignation} \r\n {MessageUtility.GetShipAscii(request.ShipClass)} \r\n \r\n"); }