Esempio n. 1
0
 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)} ");
 }
Esempio n. 2
0
 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)} ");
     }
 }
Esempio n. 4
0
 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");
 }