/// <summary> /// Initializes a new instance of the <see cref="AssetResolver" /> class. /// </summary> /// <param name="containsLocation">The delegate used to check if an asset location is already used.</param> /// <param name="containsAssetWithId">The delegate used to check if an asset identifier is already used.</param> public AssetResolver(NamingHelper.ContainsLocationDelegate containsLocation, ContainsAssetWithIdDelegate containsAssetWithId) { ExistingIds = new HashSet <AssetId>(); ExistingLocations = new HashSet <string>(StringComparer.OrdinalIgnoreCase); ContainsLocation = containsLocation; ContainsAssetWithId = containsAssetWithId; }
/// <summary> /// Initializes a new instance of the <see cref="AssetResolver" /> class. /// </summary> /// <param name="containsLocation">The delegate used to check if an asset location is already used.</param> /// <param name="containsAssetWithId">The delegate used to check if an asset identifier is already used.</param> public AssetResolver(NamingHelper.ContainsLocationDelegate containsLocation, ContainsAssetWithIdDelegate containsAssetWithId) { existingIds = new HashSet<Guid>(); existingLocations = new HashSet<string>(StringComparer.OrdinalIgnoreCase); ContainsLocation = containsLocation; ContainsAssetWithId = containsAssetWithId; this.containsLocation = DefaultContainsLocation; containsId = DefaultContainsId; }
/// <summary> /// Initializes a new instance of the <see cref="AssetResolver" /> class. /// </summary> /// <param name="containsLocation">The delegate used to check if an asset location is already used.</param> /// <param name="containsAssetWithId">The delegate used to check if an asset identifier is already used.</param> public AssetResolver(NamingHelper.ContainsLocationDelegate containsLocation, ContainsAssetWithIdDelegate containsAssetWithId) { existingIds = new HashSet <Guid>(); existingLocations = new HashSet <string>(StringComparer.OrdinalIgnoreCase); ContainsLocation = containsLocation; ContainsAssetWithId = containsAssetWithId; this.containsLocation = DefaultContainsLocation; containsId = DefaultContainsId; }