9
9
using GitHub . VisualStudio ;
10
10
using Microsoft . VisualStudio ;
11
11
using Microsoft . VisualStudio . Shell . Interop ;
12
- using Microsoft . Win32 ;
13
- using System . Diagnostics ;
14
12
using GitHub . TeamFoundation ;
15
13
using Microsoft . TeamFoundation . Git . Controls . Extensibility ;
16
14
using Microsoft . VisualStudio . TeamFoundation . Git . Extensibility ;
17
15
18
16
namespace GitHub . Services
19
17
{
20
- [ Export ( typeof ( IVSServices ) ) ]
18
+ [ Export ( typeof ( IVSGitServices ) ) ]
21
19
[ PartCreationPolicy ( CreationPolicy . Shared ) ]
22
- public class VSServices : IVSServices
20
+ public class VSGitServices : IVSGitServices
23
21
{
24
22
readonly IUIProvider serviceProvider ;
25
23
@@ -32,7 +30,7 @@ public class VSServices : IVSServices
32
30
IGitExt gitExtService ;
33
31
34
32
[ ImportingConstructor ]
35
- public VSServices ( IUIProvider serviceProvider )
33
+ public VSGitServices ( IUIProvider serviceProvider )
36
34
{
37
35
this . serviceProvider = serviceProvider ;
38
36
}
@@ -104,39 +102,5 @@ public string SetDefaultProjectPath(string path)
104
102
{
105
103
return RegistryHelper . SetDefaultProjectPath ( path ) ;
106
104
}
107
-
108
- public void ActivityLogMessage ( string message )
109
- {
110
- var log = serviceProvider . GetActivityLog ( ) ;
111
- if ( log != null )
112
- {
113
- if ( ! ErrorHandler . Succeeded ( log . LogEntry ( ( UInt32 ) __ACTIVITYLOG_ENTRYTYPE . ALE_INFORMATION ,
114
- Info . ApplicationInfo . ApplicationSafeName , message ) ) )
115
- Console . WriteLine ( string . Format ( CultureInfo . CurrentCulture , "Could not log message to activity log: {0}" , message ) ) ;
116
- }
117
- }
118
-
119
- public void ActivityLogError ( string message )
120
- {
121
- var log = serviceProvider . GetActivityLog ( ) ;
122
- if ( log != null )
123
- {
124
-
125
- if ( ! ErrorHandler . Succeeded ( log . LogEntry ( ( UInt32 ) __ACTIVITYLOG_ENTRYTYPE . ALE_ERROR ,
126
- Info . ApplicationInfo . ApplicationSafeName , message ) ) )
127
- Console . WriteLine ( string . Format ( CultureInfo . CurrentCulture , "Could not log error to activity log: {0}" , message ) ) ;
128
- }
129
- }
130
-
131
- public void ActivityLogWarning ( string message )
132
- {
133
- var log = serviceProvider . GetActivityLog ( ) ;
134
- if ( log != null )
135
- {
136
- if ( ! ErrorHandler . Succeeded ( log . LogEntry ( ( UInt32 ) __ACTIVITYLOG_ENTRYTYPE . ALE_WARNING ,
137
- Info . ApplicationInfo . ApplicationSafeName , message ) ) )
138
- Console . WriteLine ( string . Format ( CultureInfo . CurrentCulture , "Could not log warning to activity log: {0}" , message ) ) ;
139
- }
140
- }
141
105
}
142
106
}
0 commit comments