blob: 84173b99bd20871a0477c10b78a9c50943b705f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
namespace WixToolset
{
using WixToolset.Data;
using WixToolset.Extensibility;
/// <summary>
/// Core class for the binder.
/// </summary>
internal class BinderCore : IBinderCore
{
public IBinderFileManagerCore FileManagerCore { get; set; }
/// <summary>
/// Gets whether the binder core encountered an error while processing.
/// </summary>
/// <value>Flag if core encountered an error during processing.</value>
public bool EncounteredError
{
get { return Messaging.Instance.EncounteredError; }
}
/// <summary>
/// Generate an identifier by hashing data from the row.
/// </summary>
/// <param name="prefix">Three letter or less prefix for generated row identifier.</param>
/// <param name="args">Information to hash.</param>
/// <returns>The generated identifier.</returns>
public string CreateIdentifier(string prefix, params string[] args)
{
return Common.GenerateIdentifier(prefix, args);
}
/// <summary>
/// Sends a message to the message delegate if there is one.
/// </summary>
/// <param name="mea">Message event arguments.</param>
public void OnMessage(MessageEventArgs e)
{
Messaging.Instance.OnMessage(e);
}
}
}
|