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


C# GrainReference.ToDetailedString方法代码示例

本文整理汇总了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);
 }
开发者ID:PaulNorth,项目名称:orleans,代码行数:18,代码来源:GrainBasedReminderTable.cs

示例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);
 }
开发者ID:PaulNorth,项目名称:orleans,代码行数:20,代码来源:InsideRuntimeClient.cs


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