コード例 #1
0
 public string GetTargetType(ITaskTarget taskTarget)
 {
     if (!_types.ContainsKey(taskTarget.Id))
     {
         _types[taskTarget.Id] = taskTarget.GetTargetInterfaceTypeName();
     }
     return(_types[taskTarget.Id] ?? string.Empty);
 }
コード例 #2
0
 public string GetEntityToken(ITaskTarget taskTarget)
 {
     if (!_entityTokens.ContainsKey(taskTarget.Id))
     {
         _entityTokens[taskTarget.Id] = taskTarget.GetTargetEntityToken();
     }
     return(_entityTokens[taskTarget.Id] ?? string.Empty);
 }
コード例 #3
0
 public string GetTitle(ITaskTarget taskTarget)
 {
     if (!_titles.ContainsKey(taskTarget.Id))
     {
         _titles[taskTarget.Id] = taskTarget.GetTargetTitle();
     }
     return(HttpUtility.HtmlEncode(_titles[taskTarget.Id] ?? string.Empty));
 }