Initial admin and DR services. (#329)

* Add initial services for admin, tasks, and DR

* Fix up some of the contract interfaces

* Make fields public to allow Json.Net to work

* Fix a couple issues in backup contracts
This commit is contained in:
Karl Burtram
2017-04-26 10:29:15 -07:00
committed by GitHub
parent 009967fee8
commit 1a16101381
15 changed files with 409 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.Contracts
{
public class BackupParams
{
public string OwnerUri { get; set; }
public BackupInfo BackupInfo { get; set; }
}
public class BackupResponse
{
public bool Result { get; set; }
public int TaskId { get; set; }
}
public class BackupRequest
{
public static readonly
RequestType<BackupParams, BackupResponse> Type =
RequestType<BackupParams, BackupResponse>.Create("disasterrecovery/backup");
}
}