public BuildMessage(CustomBuildEventArgs args) { EventType = args.GetType().Name.Replace("EventArgs", ""); Message = args.Message; HelpKeyword = args.HelpKeyword; SenderName = args.SenderName; Timestamp = args.Timestamp; ThreadId = args.ThreadId; }
/// <summary> /// Stub implementation -- forwards to engine being proxied. /// </summary> public void LogCustomEvent(CustomBuildEventArgs e) { ErrorUtilities.VerifyThrowArgumentNull(e, "e"); ErrorUtilities.VerifyThrowInvalidOperation(activeProxy == true, "AttemptingToLogFromInactiveTask"); if (parentModule.IsRunningMultipleNodes && !e.GetType().IsSerializable) { loggingServices.LogWarning(buildEventContext, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name); return; } e.BuildEventContext = buildEventContext; loggingServices.LogCustomEvent(e); }