// // 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.ServiceLayer.Connection.Contracts; using Microsoft.SqlServer.Management.XEvent; namespace Microsoft.SqlTools.ServiceLayer.Profiler { /// /// Main class for Profiler Service functionality /// public interface IXEventSession { /// /// Gets unique XEvent session Id /// int Id { get; } /// /// Connection details associated with the session id. /// ConnectionDetails ConnectionDetails { get; set; } /// /// Session associated with the session id. /// Session Session { get; set; } /// /// Starts XEvent session /// void Start(); /// /// Stops XEvent session /// void Stop(); /// /// Reads XEvent XML from the default session target /// string GetTargetXml(); } }