/// <summary> /// Begins an item /// </summary> protected void BeginItem(HashValueType inputType, string name = null) { if (m_builder != null) { for (int i = 0; i < m_indentCount; i++) { AddInnerCharacterDebug(' '); } AddInnerCharacterDebug('['); } if (name != null) { AddInnerString(name, forceUppercase: false); AddInnerCharacter(':'); } switch (inputType) { case HashValueType.ContentHash: AddInnerStringLiteral("ContentHash", false); break; case HashValueType.HashedPath: AddInnerStringLiteral("HashedPath", false); break; case HashValueType.Int: AddInnerStringLiteral("Int", false); break; case HashValueType.Long: AddInnerStringLiteral("Long", false); break; case HashValueType.Path: AddInnerStringLiteral("Path", false); break; case HashValueType.String: AddInnerStringLiteral("String", false); break; default: Contract.Assert(false, "Unknown HashValueType"); break; } if (m_builder != null) { AddInnerCharacterDebug(']'); } }
public byte[] ComputeHash(string path, HashValueType hashValueType) { return(_dtpFactory.ExecuteFunction <byte[]>("CalculateHashValue", path, hashValueType)); }