文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Silverlight访问WCF服务时SoapHeader信息丢失

Silverlight访问WCF服务时SoapHeader信息丢失

时间:2011-04-16  来源:Vincent.C

1. 为将ObservableCollection<Order> 初始化造成, 修改办法:

public void GetNoPagerAsync<TReturnType>(TMethodEnum methodEnum, EventHandler<ServiceAsyncCompletedEventArgs<TReturnType>> onCompletedCallBack, ObservableCollection<NCondition> whereCodition, ObservableCollection<NOrder> orderCondition, object userState)
        {
            //base.InvokeAsync(
            //    new BeginOperationDelegate((object[] inValues, System.AsyncCallback callback, object asyncState) => { return Channel.MethodBeginInvoke(ServiceMethodNames[methodEnum], inValues, callback, asyncState); }),
            //        new object[] { whereCodition, orderCondition },
            //        new EndOperationDelegate((System.IAsyncResult result) => { return new object[] { Channel.MethodEndInvoke<TReturnType>(ServiceMethodNames[methodEnum], result) }; }),
            //        new SendOrPostCallback((object state) => { if ((onCompletedCallBack != null)) { var e = state as InvokeAsyncCompletedEventArgs; onCompletedCallBack(this, new ServiceAsyncCompletedEventArgs<TReturnType>(e.Results, e.Error, e.Cancelled, e.UserState)); } }),
            //        userState);
            if (orderCondition == null) orderCondition = new ObservableCollection<NOrder>();
            AsyncMethod<TReturnType>(methodEnum, onCompletedCallBack, new object[] { whereCodition, orderCondition }, userState);
        }
相关阅读 更多 +
排行榜 更多 +
找茬脑洞的世界安卓版

找茬脑洞的世界安卓版

休闲益智 下载
滑板英雄跑酷2手游

滑板英雄跑酷2手游

休闲益智 下载
披萨对对看下载

披萨对对看下载

休闲益智 下载