/// <summary> /// Initializes a new instance of the <see cref="PutFileCall{TTracer}"/> class. /// </summary> private PutFileCall( TTracer tracer, OperationContext context, AbsolutePath path, FileRealizationMode mode, ContentHash contentHash, bool trustedHash) : base(tracer, context) { Contract.Requires(contentHash.HashType != HashType.Unknown); _contentHash = contentHash; _trustedHash = trustedHash; Tracer.PutFileStart(Context, path, mode, contentHash, _trustedHash); }
/// <summary> /// Initializes a new instance of the <see cref="PutFileCall{TTracer}"/> class. /// </summary> private PutFileCall( TTracer tracer, OperationContext context, AbsolutePath path, FileRealizationMode mode, HashType hashType, bool trustedHash) : base(tracer, context) { Contract.Requires(hashType != HashType.Unknown); _contentHash = new ContentHash(hashType); _trustedHash = trustedHash; _path = path; _mode = mode; Tracer.PutFileStart(Context, path, mode, hashType, trustedHash); }