// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #nullable disable namespace Microsoft.SqlTools.ServiceLayer.Profiler.Contracts { /// /// Class that contains data for a single profile event /// public class ProfilerSessionTemplate { /// /// Initialize a new ProfilerEvent with required parameters /// public ProfilerSessionTemplate(string name, string defaultView, string createStatement) { this.Name = name; this.DefaultView = defaultView; this.CreateStatement = createStatement; } /// /// Profiler event name /// public string Name { get; private set; } /// /// Profiler event timestamp /// public string DefaultView { get; private set; } /// /// Profiler event timestamp /// public string CreateStatement { get; private set; } /// /// Equals method /// public bool Equals(ProfilerSessionTemplate t) { // if parameter is null return false: if ((object)t == null) { return false; } return this.Name == t.Name && this.DefaultView == t.DefaultView && this.CreateStatement == t.CreateStatement; } } }