English 中文(简体)
网络服务已完成的活动没有在大视窗8上显示
原标题:Web Service Completed Events not show On Metro Windows 8 App Development

我首先要问一下,我设立了网站服务处。 而且,我有视窗电话用户申请和窗口8的客户申请,现在我把头7号申请连接起来,我利用这些方法从窗户电话服务获得一些东西:

        TimeTierBusiness.BusinessesClient client = new TimeTierBusiness.BusinessesClient();

        client.GetAllCompleted += new EventHandler<TimeTierBusiness.GetAllCompletedEventArgs>(client_GetAllCompleted);
        client.GetAllAsync();

为了取得结果,我只去了客户。 各位可以认为:

    void client_GetAllCompleted(object sender, TimeTierBusiness.GetAllCompletedEventArgs e)
    {
        listNearbyBusinesses.ItemsSource = e.Result;
        myPopup.IsOpen = false;
    }

现在,在8米罗的窗口上,我没有可以补充的结晶活动,当我把客户放在8个窗口上时,这完全是等待的“Get AllAsync”方法。

任何帮助都会受到高度赞赏,因为我现在可以把这一服务用在我的 met子上。

感谢:

因此,解决办法是,采用“合成方法”,见以下法典:

        //My WCF Service Client
        TimeTierBusiness.BusinessesClient bClient = new TimeTierBusiness.BusinessesClient();
        //The list I am going to get from the service
        public List<TimeTierBusiness.BusinessRatingViewModel> listBusinessViewModel;

填补本职务的空缺的方法

       private async void GetAllAsyc()
    {

        System.Collections.ObjectModel.ObservableCollection<TimeTierBusiness.BusinessRatingViewModel> x = await bClient.GetAllAsync();
        listBusinessViewModel = x.ToList();
        ItemListView.ItemsSource = listBusinessViewModel;
    }
最佳回答

视窗8(实际上,电网4.5与电离层一道)是所有时间最热心和骨干的结晶。 它以待决/合并的关键词为基础,它基本上允许你撰写同其同步的法典。 在工作和pet项目上,我最后做一等同义,在看到这一特点之后,我决定,我的下一个孩子将出生。 Net guys是一种牺牲(因为这个特征只是这种好事,因为我已经有三个孩子,实际上不希望另一个孩子)。

顺便提一下的是,你写了要求你作为同仁服务(在这种情况下)的标准,与你一样,是一种固定的方法,但是,你只是“期待”了结,而是在下面的行文中继续工作,结果就是编造一些黑暗的魔.(如果你利用收益,它会带来一种非常相似的黑暗的魔鬼),把你的方法变成一系列方法,加上一个将按正确顺序叫去的国家机器。

http://msdn.microsoft.com/en-us/library/h1914 4328v=VS.110%29.aspx“rel=” 阅读更多信息:

问题回答

暂无回答




相关问题
WCF DataMember Serializing questions

Ok, so I was part way through the long winded process of creating DTOs for sending my model over the wire and I don t feel like I m going down the right route. My issue is that most of the entities ...

Access WCF service on same server

I have a .NET website with a WCF service. How do I access the current operations context of my service? One possible work around is to just make a call to the service within the app...but that seems ...

WCF binding error

So I got into work early today and got the latest from source control. When I try to launch our ASP.NET application, I get this exception: "The binding at system.serviceModel/bindings/wsHttpBinding ...

The service operation requires a transaction to be flowed

I am facing strange issue with our WCF service. The same code was working fine until recently we added more OperationContracts(Web Methods). We have common 3 tier architecture. DAL (WCF) BLL Web ...

热门标签