public string GetTargetType(ITaskTarget taskTarget) { if (!_types.ContainsKey(taskTarget.Id)) { _types[taskTarget.Id] = taskTarget.GetTargetInterfaceTypeName(); } return(_types[taskTarget.Id] ?? string.Empty); }
public string GetEntityToken(ITaskTarget taskTarget) { if (!_entityTokens.ContainsKey(taskTarget.Id)) { _entityTokens[taskTarget.Id] = taskTarget.GetTargetEntityToken(); } return(_entityTokens[taskTarget.Id] ?? string.Empty); }
public string GetTitle(ITaskTarget taskTarget) { if (!_titles.ContainsKey(taskTarget.Id)) { _titles[taskTarget.Id] = taskTarget.GetTargetTitle(); } return(HttpUtility.HtmlEncode(_titles[taskTarget.Id] ?? string.Empty)); }