本文整理汇总了C#中IItemData.GetDisplayIdentifier方法的典型用法代码示例。如果您正苦于以下问题:C# IItemData.GetDisplayIdentifier方法的具体用法?C# IItemData.GetDisplayIdentifier怎么用?C# IItemData.GetDisplayIdentifier使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IItemData
的用法示例。
在下文中一共展示了IItemData.GetDisplayIdentifier方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DumpTree
/// <returns>True if the tree was dumped, false if the root item was not included</returns>
public virtual bool DumpTree(IItemData item, IConfiguration configuration = null)
{
using (new TransparentSyncDisabler())
{
if(configuration == null) configuration = GetConfigurationForItem(item);
if (configuration == null) return false;
var logger = configuration.Resolve<ILogger>();
var predicate = configuration.Resolve<IPredicate>();
var serializationStore = configuration.Resolve<ITargetDataStore>();
var sourceStore = configuration.Resolve<ISourceDataStore>();
var rootReference = serializationStore.GetByPathAndId(item.Path, item.Id, item.DatabaseName);
if (rootReference != null)
{
logger.Warn("[D] existing serialized items under {0}".FormatWith(rootReference.GetDisplayIdentifier()));
serializationStore.Remove(rootReference);
}
logger.Info("[U] Serializing included items under root {0}".FormatWith(item.GetDisplayIdentifier()));
if (!predicate.Includes(item).IsIncluded) return false;
DumpTreeInternal(item, predicate, serializationStore, sourceStore, logger);
}
return true;
}
示例2: DeserializedNewItem
public virtual void DeserializedNewItem(IItemData targetItem)
{
Assert.ArgumentNotNull(targetItem, "targetItem");
_logger.Info("[A] {0}".FormatWith(targetItem.GetDisplayIdentifier()));
_pipelineDataCollector.PushChangedItem(targetItem, ChangeType.Created);
_pipelineDataCollector.AddProcessedItem();
}
示例3: DuplicateFound
public virtual void DuplicateFound(DuplicateIdConsistencyChecker.DuplicateIdEntry existingItemData, IItemData duplicateItemData)
{
_logger.Error("Duplicate serialized item IDs were detected ({0}) - this usually indicates corruption in the serialization provider data.<br>Item 1: {1}<br> Item 1 ProviderId: {2}<br>Item 2: {3}<br>Item 2 ProviderId: {4}".FormatWith(duplicateItemData.Id, existingItemData.DisplayName, existingItemData.SerializedItemId, duplicateItemData.GetDisplayIdentifier(), duplicateItemData.SerializedItemId));
}
示例4: DuplicateIdEntry
public DuplicateIdEntry(IItemData item)
{
DisplayName = item.GetDisplayIdentifier();
SerializedItemId = item.SerializedItemId;
}
示例5: DeletedItem
public virtual void DeletedItem(IItemData deletedItem)
{
_logger.Warn("[D] {0} because it did not exist in the serialization provider.".FormatWith(deletedItem.GetDisplayIdentifier()));
_pipelineDataCollector.PushChangedItem(deletedItem, ChangeType.Deleted);
_pipelineDataCollector.AddProcessedItem();
}
示例6: DeletedItem
public virtual void DeletedItem(string providerName, IItemData existingItemData)
{
_logger.Info(string.Format("{0}: Serialized item {1} was deleted due to the source item being deleted.", providerName, existingItemData.GetDisplayIdentifier()));
}
示例7: SkippedItem
public override void SkippedItem(IItemData skippedItemData, string predicateName, string justification)
{
_logger.Debug("[S] {0} (and children) by {1}: {2}".FormatWith(skippedItemData.GetDisplayIdentifier(), predicateName, justification));
}
示例8: EndLoadingTree
public override void EndLoadingTree(IItemData rootSerializedItemData, int itemsProcessed, long elapsedMilliseconds)
{
_logger.Info("Unicorn completed loading {0}".FormatWith(rootSerializedItemData.GetDisplayIdentifier()));
_logger.Debug("Items processed: {0}, Elapsed time: {1}ms ({2:N2}ms/item)".FormatWith(itemsProcessed, elapsedMilliseconds, (double)elapsedMilliseconds / (double)itemsProcessed));
}
示例9: BeginLoadingTree
public override void BeginLoadingTree(IItemData rootSerializedItemData)
{
_logger.Info("Unicorn loading {0}".FormatWith(rootSerializedItemData.GetDisplayIdentifier()));
}
示例10: SkippedItemPresentInSerializationProvider
public virtual void SkippedItemPresentInSerializationProvider(IItemData root, string predicateName, string serializationProviderName, string justification)
{
_logger.Warn("[S] {0} by {1} but it was in {2}. {3}<br />This usually indicates an extraneous excluded serialized item is present in the {3}, which should be removed.".FormatWith(root.GetDisplayIdentifier(), predicateName, serializationProviderName, justification));
}