本文整理汇总了C#中Callback.GenerateAllPagesXML方法的典型用法代码示例。如果您正苦于以下问题:C# Callback.GenerateAllPagesXML方法的具体用法?C# Callback.GenerateAllPagesXML怎么用?C# Callback.GenerateAllPagesXML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Callback
的用法示例。
在下文中一共展示了Callback.GenerateAllPagesXML方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleCallBack
//.........这里部分代码省略.........
case CallbackType.NGallery_GetQDSResults:
RetVal = OCallback.NGallery_GetQDSResults(RequestParam);
break;
case CallbackType.NGallery_GetASResults:
RetVal = OCallback.NGallery_GetASResults(RequestParam);
break;
case CallbackType.NGallery_GetMoreKeywords:
RetVal = OCallback.NGallery_GetMoreKeywords(RequestParam);
break;
case CallbackType.GetICTypes:
RetVal = OCallback.GetICTypes(RequestParam);
break;
case CallbackType.GetCategoryScheme:
RetVal = OCallback.GetCategoryScheme(RequestParam);
break;
case CallbackType.AdminAddNewLanguage:
RetVal = OCallback.AdminAddNewLanguage(RequestParam);
break;
case CallbackType.AdminSDMXArtefactsGeneration:
RetVal = OCallback.AdminSDMXArtefactsGeneration(RequestParam);
break;
case CallbackType.RegisterUser:
RetVal = OCallback.RegisterUser(RequestParam);
break;
case CallbackType.LoginUser:
RetVal = OCallback.LoginUser(RequestParam, false);
break;
case CallbackType.AdminGetAllLanguageList:
RetVal = OCallback.AdminGetAllLanguageList();
break;
case CallbackType.AdminDeleteLanguage:
RetVal = OCallback.AdminDeleteLanguage(RequestParam);
break;
case CallbackType.GenerateAllPagesXML:
RetVal = OCallback.GenerateAllPagesXML();
break;
case CallbackType.AddRegistration:
RetVal = OCallback.AddRegistration(RequestParam);
break;
case CallbackType.GetRegistrationsSummary:
RetVal = OCallback.GetRegistrationsSummary(RequestParam);
break;
case CallbackType.GetRegistrationDetails:
RetVal = OCallback.GetRegistrationDetails(RequestParam);
break;
case CallbackType.UpdateRegistration:
RetVal = OCallback.UpdateRegistration(RequestParam);
break;
case CallbackType.DeleteRegistration:
RetVal = OCallback.DeleteRegistration(RequestParam);
break;
case CallbackType.SendNotifications:
RetVal = OCallback.SendNotifications(RequestParam);
break;
case CallbackType.GetLoggedInUserSubscriptions:
RetVal = OCallback.GetLoggedInUserSubscriptions(RequestParam);
break;
case CallbackType.UpdateSubscription:
RetVal = OCallback.UpdateSubscription(RequestParam);
break;
case CallbackType.DeleteSubscription:
RetVal = OCallback.DeleteSubscription(RequestParam);
break;
case CallbackType.GetEmailIdOfLoggedInUser:
RetVal = OCallback.GetEmailIdOfLoggedInUser(RequestParam);
break;
示例2: UpdateLanguageFiles
/// <summary>
/// Get all the new keys
/// Add new keys to master language files
/// Genarate page xml for all languages
/// </summary>
/// <returns>True if key aadded and language files updated successfully, else return false</returns>
public bool UpdateLanguageFiles()
{
bool RetVal = false;
Callback Callback = null;
bool IsGeneratelog = false;
// Check if keys have been added to language file
if (this.AddKeysToLangFile())
{
Callback = new Callback();
// IsGeneratelog is a optional parameter, for checking whether to make an entry in patch log file
// by default its value is false
// While generating log file, at the patch installation step need to make entry in patch log file
// so setvalue of IsGeneratelog to true,
IsGeneratelog = true;
// call method to optimize language file
if (Callback.GenerateAllPagesXML(IsGeneratelog) == "true")
{// language files generated successfully return true
RetVal = true;
}
else
{// If language files generation failed return true
RetVal = false;
}
}// else set return value to false
else
{
RetVal = false;
}
return RetVal;
}