1 // Copyright (c) Microsoft. All rights reserved. 2 // Licensed under the MIT license. See LICENSE file in the project root for full license information. 3 4 using Microsoft.Build.Framework; 5 using Microsoft.Build.Shared; 6 using Microsoft.Build.Logging; 7 8 namespace Microsoft.Build.CommandLine 9 { 10 /// <summary> 11 /// This class is a container class used to pass around information about distributed logger 12 /// </summary> 13 internal class DistributedLoggerRecord 14 { 15 #region Constructors 16 /// <summary> 17 /// Initialize the container class with the given centralLogger and forwardingLoggerDescription 18 /// </summary> DistributedLoggerRecord(ILogger centralLogger, LoggerDescription forwardingLoggerDescription)19 internal DistributedLoggerRecord(ILogger centralLogger, LoggerDescription forwardingLoggerDescription) 20 { 21 _centralLogger = centralLogger; 22 _forwardingLoggerDescription = forwardingLoggerDescription; 23 } 24 #endregion 25 26 #region Properties 27 /// <summary> 28 /// Fully initialized central logger 29 /// </summary> 30 internal ILogger CentralLogger 31 { 32 get 33 { 34 return _centralLogger; 35 } 36 } 37 38 /// <summary> 39 /// Description of the forwarding class 40 /// </summary> 41 internal LoggerDescription ForwardingLoggerDescription 42 { 43 get 44 { 45 return _forwardingLoggerDescription; 46 } 47 } 48 #endregion 49 50 #region Data 51 // Central logger 52 private ILogger _centralLogger; 53 // Description of the forwarding logger 54 private LoggerDescription _forwardingLoggerDescription; 55 #endregion 56 } 57 } 58