当前位置: 首页>>代码示例>>C#>>正文


C# Service.RunCallableLoader方法代码示例

本文整理汇总了C#中Service.RunCallableLoader方法的典型用法代码示例。如果您正苦于以下问题:C# Service.RunCallableLoader方法的具体用法?C# Service.RunCallableLoader怎么用?C# Service.RunCallableLoader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Service的用法示例。


在下文中一共展示了Service.RunCallableLoader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Execute


//.........这里部分代码省略.........
                                GetGenevaTransactionKeys(htUserTranId1Ref, htTypeIndicatorRef, ref loaderType, ref loaderAction, ref userTranId1, ref identifier, subNode, loaderKeys);

                                XmlNode subNodeCopy = xdocXmlData.CreateElement(subNode.Name);
                                subNodeCopy.InnerXml = subNode.InnerXml;
                                xdocXmlData.FirstChild.AppendChild(subNodeCopy);

                                if (!htSubTypeIndicatorRef.Contains(identifier))
                                    htSubTypeIndicatorRef.Add(identifier, loaderAction + "Type");

                                htXmlData.Add(i, ConvertXmlData(jobKeyCode, xdocXmlData));
                                htIdentifierRef.Add(i, identifier);

                                i++;
                            }
                        }

                        try
                        {
                            ifRetry = true;
                            int numtries = 1;
                            bool isContingency = false;
                            DateTime runStartTime = DateTime.Now;

                            GetSubAdvisorActivityName(state, ref activityName);
                            runId = AddActivityRun(activityName, state.SourceFileName, sourceXdoc.DocumentElement.FirstChild.ChildNodes.Count);

                            while (ifRetry)
                            {
                                try
                                {
                                    webServ = null;
                                    while (webServ == null && numtries < 12)
                                    {
                                        log.InfoFormat(jobKeyCode, "Attempting Geneva SOAP RunCallableLoader [retry #{3}] on {0}:{1} with flags {2}", host, port, flags, numtries);
                                        webServ = new Service();
                                        if (webServ == null)
                                            Thread.Sleep(5000);
                                        numtries++;
                                    }

                                    if (webServ == null)
                                    {
                                        log.ErrorFormat(jobKeyCode, "Web service not constructed (null value)");
                                        retval = StateEnums.Status.Warnings;
                                        throw new System.Web.Services.Protocols.SoapException();
                                    }
                                    else
                                    {
                                        log.InfoFormat(jobKeyCode, "Web service constructed successfully");

                                        webServ.Timeout = timeout;
                                        log.InfoFormat(jobKeyCode, "Web service timeout assigned: {0}", timeout);

                                        webServ.Url = this.Url;
                                        log.InfoFormat(jobKeyCode, "Web url assigned: {0}", webServ.Url);

                                        if (runrepSessionID.Equals(String.Empty))
                                            try
                                            {
                                                runrepSessionID = webServ.StartCallableLoader(port, host, uid, pwd);
                                                log.InfoFormat(jobKeyCode, "Runrep session started successfully [Runrep ID: {0}]", runrepSessionID);
                                            }
                                            catch (Exception ex)
                                            {
                                                log.WarnFormat(jobKeyCode, "Failed to start runrep session: {0} [Runrep ID: {1}]", ex, runrepSessionID);
                                                retval = StateEnums.Status.Warnings;
开发者ID:BrianGoff,项目名称:BITS,代码行数:67,代码来源:GenevaSoapUpdate.cs


注:本文中的Service.RunCallableLoader方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。