Esempio n. 1
0
        //[Authorize("Admin")]
        public override Task <WindmillInfo> DisconnectFromGrid(WindmillStatusRequest request, ServerCallContext context)
        {
            //TODO: Add business logic to disconnect the windmill
            var windmillInfo = windmillsDataReader.GetWindmillInfo(Guid.Parse(request.WindmillId));

            windmillInfo.Status = WindmillStatus.Disconnected;
            return(Task.FromResult(windmillInfo));
        }
Esempio n. 2
0
 public override Task <WindmillInfo> RequestWindmillStatus(WindmillStatusRequest request, ServerCallContext context)
 {
     return(Task.FromResult(windmillsDataReader.GetWindmillInfo(Guid.Parse(request.WindmillId))));
 }