Example #1
0
 public Device(ConnectRoomRequest req)
 {
     this.Id         = req.Id.ToString();
     this.Status     = req.Status;
     this.DeviceName = req.Id.ToString();
     DeviceType      = "ConferencePhone";
 }
Example #2
0
 public static void ConnectRoom(
     [ActivityTrigger] ConnectRoomRequest req,
     [CosmosDB("devices", "devices", ConnectionStringSetting = "CosmosDbConnectionString", CreateIfNotExists = true)] out Device light,
     ILogger log)
 {
     log.LogInformation($"Connecting phone {req.Id}...");
     light = new Device(req);
 }