@@ -71,16 +71,16 @@ private static void Setup()
7171 . Bind ( ) . To ( _ => DateTime . Now )
7272 . Bind ( ) . To ( _ => typeof ( Composition ) . Assembly )
7373 . Bind ( ) . To ( _ => new CSharpParseOptions ( ) . LanguageVersion )
74- . Bind ( " RuntimePath" ) . To ( _ => Path . GetDirectoryName ( typeof ( object ) . Assembly . Location ) ?? string . Empty )
74+ . Bind ( RuntimePath ) . To ( _ => Path . GetDirectoryName ( typeof ( object ) . Assembly . Location ) ?? string . Empty )
7575 . Bind ( ) . To ( ( CancellationTokenSource cancellationTokenSource ) => cancellationTokenSource . Token )
76- . Bind ( " TargetFrameworkMoniker" ) . To ( ( Assembly assembly ) => assembly . GetCustomAttribute < System . Runtime . Versioning . TargetFrameworkAttribute > ( ) ? . FrameworkName ?? string . Empty )
76+ . Bind ( TargetFrameworkMoniker ) . To ( ( Assembly assembly ) => assembly . GetCustomAttribute < System . Runtime . Versioning . TargetFrameworkAttribute > ( ) ? . FrameworkName ?? string . Empty )
7777 . Bind ( ) . To ( _ => Process . GetCurrentProcess ( ) )
78- . Bind ( " ModuleFile" ) . To ( ( Process process ) => process . MainModule ? . FileName ?? string . Empty )
78+ . Bind ( ModuleFile ) . To ( ( Process process ) => process . MainModule ? . FileName ?? string . Empty )
7979 . Bind ( ) . To < ScriptCommandFactory > ( )
8080 . Bind ( ) . To < ReliableBuildContext > ( )
8181 . Bind ( ) . To < ProcessMonitor > ( )
8282 . Bind ( ) . To < ProcessManager > ( )
83- . Bind ( "base" ) . To < BuildContext > ( )
83+ . Bind ( Base ) . To < BuildContext > ( )
8484 . Bind ( ) . To ( _ => MemoryPool < TT > . Shared )
8585 . Bind ( ) . To < SourceResolver > ( )
8686 . Bind ( ) . To < MetadataResolver > ( )
@@ -119,12 +119,12 @@ private static void Setup()
119119 . Bind ( ) . To < FileExplorer > ( )
120120 . Bind ( ) . To < Utf8Encoding > ( )
121121 . Bind ( ) . To < BuildOutputProcessor > ( )
122- . Bind ( "default" ) . To < DefaultBuildMessagesProcessor > ( )
123- . Bind ( "custom" ) . To < CustomMessagesProcessor > ( )
122+ . Bind ( Base ) . To < DefaultBuildMessagesProcessor > ( )
123+ . Bind ( Custom ) . To < CustomMessagesProcessor > ( )
124124 . Bind ( ) . To < TeamCityContext > ( )
125125 . Bind ( ) . To < SummaryPresenter > ( )
126126 . Bind ( ) . To < ExitCodeParser > ( )
127- . Bind ( "base" ) . To < ProcessRunner > ( )
127+ . Bind ( Base ) . To < ProcessRunner > ( )
128128 . Bind ( ) . To < ProcessResultHandler > ( )
129129 . Bind ( ) . To < TextReplacer > ( )
130130 . Bind ( ) . To < RuntimeExplorer > ( )
@@ -133,14 +133,14 @@ private static void Setup()
133133 . Bind ( ) . To < Root > ( )
134134 . Bind ( ) . To ( _ => new CancellationTokenSource ( ) )
135135 . Bind ( ) . To < CISpecific < TT > > ( )
136- . Bind ( "Default" ) . To < ConsoleInOut > ( )
137- . Bind ( " TeamCity" ) . To < TeamCityInOut > ( )
138- . Bind ( " Ansi" ) . To < AnsiInOut > ( )
136+ . Bind ( Base ) . To < ConsoleInOut > ( )
137+ . Bind ( TeamCity ) . To < TeamCityInOut > ( )
138+ . Bind ( Ansi ) . To < AnsiInOut > ( )
139139 . Bind ( ) . To < Console > ( )
140140 . Bind ( ) . To ( ( ICISpecific < IStdOut > stdOut ) => stdOut . Instance )
141141 . Bind ( ) . To ( ( ICISpecific < IStdErr > stdErr ) => stdErr . Instance )
142- . Bind ( "Default" , " Ansi" ) . To < Log < TT > > ( )
143- . Bind ( " TeamCity" ) . To < TeamCityLog < TT > > ( )
142+ . Bind ( Base , Ansi ) . To < Log < TT > > ( )
143+ . Bind ( TeamCity ) . To < TeamCityLog < TT > > ( )
144144 . Bind ( ) . To ( ( ICISpecific < ILog < TT > > log ) => log . Instance )
145145 . Bind ( ) . To < CISettings > ( )
146146 . Bind ( ) . To < ExitTracker > ( )
@@ -202,8 +202,8 @@ private static void Setup()
202202 . Bind ( Unique ) . To < SettingCommandRunner < VerbosityLevel > > ( )
203203 . Bind ( Unique ) . To < AddNuGetReferenceCommandFactory > ( )
204204 . Bind ( Unique ) . To < AddNuGetReferenceCommandRunner > ( )
205- . Bind ( "Default" , " Ansi" ) . To < Properties > ( )
206- . Bind ( " TeamCity" ) . To < TeamCityProperties > ( )
205+ . Bind ( Base , Ansi ) . To < Properties > ( )
206+ . Bind ( TeamCity ) . To < TeamCityProperties > ( )
207207 . Bind ( ) . To ( ( ICISpecific < IProperties > properties ) => properties . Instance )
208208
209209 // Public services
@@ -215,7 +215,8 @@ private static void Setup()
215215 . Bind ( ) . To < ServiceMessageFormatter > ( )
216216 . Bind ( ) . To < FlowIdGenerator > ( )
217217 . Bind ( ) . To < TimestampUpdater > ( )
218- . Bind ( ) . To ( ( ITeamCityServiceMessages teamCityServiceMessages , IConsole console ) => teamCityServiceMessages . CreateWriter ( str => console . WriteToOut ( ( default , str + "\n " ) ) ) )
218+ . Bind ( ) . To ( ( ITeamCityServiceMessages teamCityServiceMessages , IConsole console )
219+ => teamCityServiceMessages . CreateWriter ( str => console . WriteToOut ( ( null , str + "\n " ) ) ) )
219220 . Bind ( ) . To < ServiceMessageParser > ( ) ;
220221 }
221222}
0 commit comments