mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Get Azure functions operation (#1228)
* add GetAzureFunctions * add tests * cleanup * check for quotes * address other comments * add logging and let error result get sent * rename file
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
|
||||
using Microsoft.SqlTools.ServiceLayer.SchemaCompare.Contracts;
|
||||
using Microsoft.SqlTools.ServiceLayer.Utility;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.AzureFunctions.Contracts
|
||||
{
|
||||
/// <summary>
|
||||
/// Parameters for getting the Azure functions in a file
|
||||
/// </summary>
|
||||
public class GetAzureFunctionsParams
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the filePath
|
||||
/// </summary>
|
||||
public string filePath { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parameters returned from a get Azure functions request
|
||||
/// </summary>
|
||||
public class GetAzureFunctionsResult : ResultStatus
|
||||
{
|
||||
public string[] azureFunctions { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines the get Azure functions request
|
||||
/// </summary>
|
||||
class GetAzureFunctionsRequest
|
||||
{
|
||||
public static readonly RequestType<GetAzureFunctionsParams, GetAzureFunctionsResult> Type =
|
||||
RequestType<GetAzureFunctionsParams, GetAzureFunctionsResult>.Create("azureFunctions/getAzureFunctions");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user