本文整理汇总了C#中GrainReference.ToDetailedString方法的典型用法代码示例。如果您正苦于以下问题:C# GrainReference.ToDetailedString方法的具体用法?C# GrainReference.ToDetailedString怎么用?C# GrainReference.ToDetailedString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GrainReference
的用法示例。
在下文中一共展示了GrainReference.ToDetailedString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoveRow
/// <summary>
/// Remove a row from the table
/// </summary>
/// <param name="grainRef"></param>
/// <param name="reminderName"></param>
/// <param name="eTag"></param>
/// <returns>true if a row with <paramref name="grainRef"/> and <paramref name="reminderName"/> existed and was removed successfully, false otherwise</returns>
public Task<bool> RemoveRow(GrainReference grainRef, string reminderName, string eTag)
{
if (logger.IsVerbose) logger.Verbose("RemoveRow entry grainRef = {0}, reminderName = {1}, eTag = {2}", grainRef, reminderName, eTag);
bool result = remTable.RemoveRow(grainRef, reminderName, eTag);
if (result == false)
{
logger.Warn(ErrorCode.RS_Table_Remove, "RemoveRow failed for grainRef = {0}, ReminderName = {1}, eTag = {2}. Table now is: {3}",
grainRef.ToDetailedString(), reminderName, eTag, remTable.ReadAll());
}
return Task.FromResult(result);
}
示例2: GetReminderService
private IReminderService GetReminderService(
string operation,
string reminderName,
out GrainReference grainRef)
{
CheckValidReminderServiceType(operation);
grainRef = CurrentActivationData.GrainReference;
SiloAddress destination = MapGrainReferenceToSiloRing(grainRef);
if (logger.IsVerbose)
{
logger.Verbose("{0} for reminder {1}, grainRef: {2} responsible silo: {3}/x{4, 8:X8} based on {5}",
operation,
reminderName,
grainRef.ToDetailedString(),
destination,
destination.GetConsistentHashCode(),
ConsistentRingProvider.ToString());
}
return InternalGrainFactory.GetSystemTarget<IReminderService>(Constants.ReminderServiceId, destination);
}