1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //----------------------------------------------------------------
5 // Compiler Error CS3001
6 // Argument type 'uint' is not CLS-compliant
7 #pragma warning disable 3001
9 namespace System.Activities.Presentation.Sqm
11 using System.Diagnostics.CodeAnalysis;
14 [SuppressMessage(FxCop.Category.Naming, FxCop.Rule.IdentifiersShouldBeSpelledCorrectly, Justification = "False positive for SQM")]
15 public interface IVSSqmService
17 // Session: A session starts when VS launches and ends when VS is closed.
19 // Simple data point: Only one value will be saved per session. The value
20 // that is set last for the same data point will win.
22 // Stream: Multiple values can be saved per session.
24 // Set an UINT value for a simple data point
25 [SuppressMessage(FxCop.Category.Naming, FxCop.Rule.IdentifiersShouldBeSpelledCorrectly, Justification = "In order to keep consistent with the same method in IVSSqm")]
26 void SetDatapoint(int dataPointId, uint value);
27 // Add a UINT value to a stream
28 void AddItemToStream(int dataPointId, uint value);
29 // Add an UINT array to stream, essentially creating a record
30 void AddArrayToStream(int dataPointId, uint[] data, int count);