Task<> does not contain a definition for 'GetAwaiter'

后端 未结 11 1259
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 07:11

Client

iGame Channel = new ChannelFactory ( new BasicHttpBinding ( BasicHttpSecurityMode . None ) , new EndpointAddress ( new Uri ( \"http://loc         


        
11条回答
  •  时光取名叫无心
    2020-11-30 07:44

    In case it helps anyone, the error message:

    'does not contain a definition for 'GetAwaiter'' etc.

    also occurs if the await is incorrectly placed before the variable like this:

    instead of:

    RtfAsTextLines = await OpenNoUserInterface(FilePath);
    

提交回复
热议问题