//[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)); }
public override Task <WindmillInfo> RequestWindmillStatus(WindmillStatusRequest request, ServerCallContext context) { return(Task.FromResult(windmillsDataReader.GetWindmillInfo(Guid.Parse(request.WindmillId)))); }