mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-18 09:35:38 -05:00
* Dropping profiler session on stop request * Changes to IXEventSession to simplify dropping sessions * Stop sessions instead of dropping, disable flaky tests * Initial framework for profiler pause requests * Restructuring profiler session monitoring * Fixes to session monitor * Testing for pause functionality * Fixing comments from PR * Changes to testing * Commenting out flaky test * Deleting leftover testing code
34 lines
931 B
C#
34 lines
931 B
C#
//
|
|
// 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;
|
|
using Microsoft.SqlTools.ServiceLayer.Utility;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.Profiler.Contracts
|
|
{
|
|
/// <summary>
|
|
/// Stop Profiling request parameters
|
|
/// </summary>
|
|
public class StopProfilingParams
|
|
{
|
|
public string OwnerUri { get; set; }
|
|
}
|
|
|
|
public class StopProfilingResult{}
|
|
|
|
/// <summary>
|
|
/// Start Profile request type
|
|
/// </summary>
|
|
public class StopProfilingRequest
|
|
{
|
|
/// <summary>
|
|
/// Request definition
|
|
/// </summary>
|
|
public static readonly
|
|
RequestType<StopProfilingParams, StopProfilingResult> Type =
|
|
RequestType<StopProfilingParams, StopProfilingResult>.Create("profiler/stop");
|
|
}
|
|
}
|