BuildMonitor.BuildEventProcessor.BuildEventProcessor C# (CSharp) Method

BuildEventProcessor() public method

Initializes a new instance of the BuildMonitor class.
public BuildEventProcessor ( DTE dte, IVsSolution solution, bool microsoftInternalUser ) : System
dte DTE
solution IVsSolution
microsoftInternalUser bool
return System
        public BuildEventProcessor(DTE dte, IVsSolution solution, bool microsoftInternalUser)
        {
            if (dte == null)
            {
                throw new ArgumentNullException("dte");
            }

            if (solution == null)
            {
                throw new ArgumentNullException("solution");
            }

            _dte = dte;
            _solution = solution;
            _microsoftInternalUser = microsoftInternalUser;

            string pathSeparator = Path.DirectorySeparatorChar.ToString();
            _localPathsMatcher = new Regex(BuildEventProcessor.LocalPathsPattern.Replace("{path separator}", pathSeparator), RegexOptions.Compiled);
            _networkPathsMatcher = new Regex(BuildEventProcessor.NetworkPathsPattern.Replace("{path separator}", pathSeparator), RegexOptions.Compiled);
            _protocolsMatcher = new Regex(BuildEventProcessor.ProtocolsPattern, RegexOptions.Compiled);
            _identifierMatcher = new Regex(BuildEventProcessor.IdentifierPattern, RegexOptions.Compiled);

            _processorStopwatch = new Stopwatch();
        }