protected override Task <WeatherInfoContainer> ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken, Application client) { var numberList = NumberList.Get(context); var ignoreList = IgnoreIdList.Get(context); if (ignoreList == null) { ignoreList = new List <string>(); } if (numberList == null) { numberList = new List <int>(); } if (!client.WaitForReady()) { throw new System.Exception("Timeout Exception"); } return(client.GetTyphoonInfo(numberList, ignoreList)); }