zoukankan      html  css  js  c++  java
  • Silverlight访问WCF服务时SoapHeader信息丢失

    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. 程序未完全编译项目, 也会造成此问题.

  • 相关阅读:
    【osd】OSD的状态转化
    【monitor】paxos算法
    【osd】Ceph中的数据一致性
    【osd】peering基本概念
    【osd】PG的生成过程
    【osd】ceph读写流程
    【osd】peering 运行过程 举例阐述
    【osd】BACKOFF
    【vscode】快捷键
    python写文件,过滤空行,根据某一行打上标记
  • 原文地址:https://www.cnblogs.com/VinC/p/2017903.html
Copyright © 2011-2022 走看看