mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-06 01:25:43 -05:00
This PR updates TDE NuGet and makes code changes to support the introduction of "StatusCode" being returned from NuGet.
52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
#nullable disable
|
|
|
|
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
|
|
|
|
namespace Microsoft.SqlTools.Migration.Contracts
|
|
{
|
|
/// <summary>
|
|
/// Parameters for the certificate migration progress event
|
|
/// </summary>
|
|
public class CertificateMigrationProgressParams
|
|
{
|
|
/// <summary>
|
|
/// Database name
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Message related to the success status. true should describe a positive outcome. false should have an error.
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
|
|
/// <summary>
|
|
/// Result of migration.
|
|
/// </summary>
|
|
public bool Success { get; set; }
|
|
|
|
/// <summary>
|
|
/// Status code returned by migration.
|
|
/// </summary>
|
|
public string StatusCode { get; set; }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Create a certificate migration request. This should be register at the client.
|
|
/// </summary>
|
|
public class CertificateMigrationProgressEvent
|
|
{
|
|
/// <summary>
|
|
/// Name and parameters for the event definition.
|
|
/// </summary>
|
|
public static readonly
|
|
EventType<CertificateMigrationProgressParams> Type =
|
|
EventType<CertificateMigrationProgressParams>.Create("migration/tdemigrationprogress");
|
|
}
|
|
}
|