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

后端 未结 11 1264
佛祖请我去吃肉
佛祖请我去吃肉 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:37

    public async Task GetSomething(int id)
    {
        return await context.model.FindAsync(id);
    }
    

提交回复
热议问题