本文整理汇总了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;