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)); }
protected override Task <WeatherInfoContainer> ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken, Application client) { var area = new Dictionary <string, List <string> >(Area.Get(context)); var keySeparator = KeyNameSeparator.Get(context); var ignoreList = IgnoreIdList.Get(context); if (keySeparator == null) { keySeparator = ""; } if (ignoreList == null) { ignoreList = new List <string>(); } if (!client.WaitForReady()) { throw new System.Exception("Timeout Exception"); } return(client.GetWarnings(area, keySeparator, ignoreList)); }