|
1 | 1 | using GitHub.VisualStudio; |
2 | 2 | using System.Runtime.InteropServices; |
3 | 3 | using System.Threading.Tasks; |
| 4 | +using System; |
| 5 | +using System.Linq.Expressions; |
| 6 | +using GitHub.Models; |
4 | 7 |
|
5 | 8 | namespace GitHub.Services |
6 | 9 | { |
7 | 10 | [Guid(Guids.UsageTrackerId)] |
8 | 11 | public interface IUsageTracker |
9 | 12 | { |
10 | | - Task IncrementLaunchCount(); |
11 | | - Task IncrementCloneCount(); |
12 | | - Task IncrementCreateCount(); |
13 | | - Task IncrementPublishCount(); |
14 | | - Task IncrementOpenInGitHubCount(); |
15 | | - Task IncrementLinkToGitHubCount(); |
16 | | - Task IncrementCreateGistCount(); |
17 | | - Task IncrementUpstreamPullRequestCount(); |
18 | | - Task IncrementLoginCount(); |
19 | | - Task IncrementPullRequestCheckOutCount(bool fork); |
20 | | - Task IncrementPullRequestPullCount(bool fork); |
21 | | - Task IncrementPullRequestPushCount(bool fork); |
22 | | - Task IncrementPullRequestOpened(); |
23 | | - Task IncrementWelcomeDocsClicks(); |
24 | | - Task IncrementWelcomeTrainingClicks(); |
25 | | - Task IncrementGitHubPaneHelpClicks(); |
26 | | - Task IncrementPRDetailsViewChanges(); |
27 | | - Task IncrementPRDetailsViewFile(); |
28 | | - Task IncrementPRDetailsCompareWithSolution(); |
29 | | - Task IncrementPRDetailsOpenFileInSolution(); |
30 | | - Task IncrementPRReviewDiffViewInlineCommentOpen(); |
31 | | - Task IncrementPRReviewDiffViewInlineCommentPost(); |
| 13 | + Task IncrementCounter(Expression<Func<UsageModel, int>> counter); |
32 | 14 | } |
33 | 15 | } |
0 commit comments