529fe8fc51
* [automation/dotnet] Start implementing structured event log support * Add Events and their models * Introduce new IStringToEnumConverter This is intended to be used for converting a non-standard enum names into corresponding enum values. The converter is utilized via StringToEnumJsonConverter with OperationType and DiffKind. * Add event-log support to up, refresh, destroy * Update event-log tests * Use lock instead of semaphore in EventLogWatcher * Add ChangeSummary to PreviewResult * Minor update * Add doc comments to Events * Use PropertyDiffModel in StepEventMetadataModel * Set Events to public * Set properties to public * Fix PreludeEvent.Config doc comment * Remove TODOs * Update Pulumi.Automation.xml * Set PULUMI_DEBUG_COMMANDs in Workspace. * Split Events and their models to separate files * Rename abbreviated Events * Remove CancelEventModel * Rename HandlesEvents test project and stack * Update CHANGELOG_PENDING.md * Rename abbreviated EngineEvent properties * Implement custom exceptions * Move event-log setup to LocalPulumiCmd * Update comments * Implement polling EventLogWatcher This replaces the previous watcher which utilized FileSystemWatcher. * Guard against onEvent throwing * Dispose CancellationTokenSource * WIP: try more direct error handling in EventLogWatcher * A bit more tests * Reformat * Update sdk/dotnet/Pulumi.Automation.Tests/EventLogWatcherTests.cs Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com> * Update sdk/dotnet/Pulumi.Automation/Events/EventLogWatcher.cs Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com> * Update sdk/dotnet/Pulumi.Automation/Events/EventLogWatcher.cs Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com> * Update sdk/dotnet/Pulumi.Automation.Tests/EventLogWatcherTests.cs Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com> * Update sdk/dotnet/Pulumi.Automation/Events/EventLogWatcher.cs Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com> * Update sdk/dotnet/Pulumi.Automation/Events/EventLogWatcher.cs Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com> * Make race condition workaround more explicit * Untabify * Remove unnecessary using and change String to string * Update doc comments on Events Co-authored-by: Anton Tayanovskyy <anton@pulumi.com> Co-authored-by: Anton Tayanovskyy <anton.tayanovskyy@gmail.com>
36 lines
1 KiB
C#
36 lines
1 KiB
C#
// Copyright 2016-2021, Pulumi Corporation
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Pulumi.Automation.Events;
|
|
|
|
namespace Pulumi.Automation
|
|
{
|
|
/// <summary>
|
|
/// Common options controlling the behavior of update actions taken
|
|
/// against an instance of <see cref="WorkspaceStack"/>.
|
|
/// </summary>
|
|
public class UpdateOptions
|
|
{
|
|
public int? Parallel { get; set; }
|
|
|
|
public string? Message { get; set; }
|
|
|
|
public List<string>? Target { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optional callback which is invoked whenever StandardOutput is written into
|
|
/// </summary>
|
|
public Action<string>? OnStandardOutput { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optional callback which is invoked whenever StandardError is written into
|
|
/// </summary>
|
|
public Action<string>? OnStandardError { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optional callback which is invoked with the engine events
|
|
/// </summary>
|
|
public Action<EngineEvent>? OnEvent { get; set; }
|
|
}
|
|
}
|