File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22 <PropertyGroup >
33 <TargetFrameworks >net46;netstandard1.6</TargetFrameworks >
44 <PlatformTarget >AnyCPU</PlatformTarget >
5+ <LangVersion >Latest</LangVersion >
56 <!-- Needed for Microsoft.Composition -->
67 <PackageTargetFallback Condition =" '$(TargetFramework)' == 'netstandard1.6' " >$(PackageTargetFallback);dotnet5.4;portable-net45+win8</PackageTargetFallback >
78 <PackageVersion Condition =" '$(GitVersion_NuGetVersion)' != ''" >$(GitVersion_NuGetVersion)</PackageVersion >
Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Collections . Concurrent ;
33using System . Collections . Generic ;
44using System . IO ;
@@ -213,6 +213,9 @@ private async Task DynamicallyRegisterHandlers()
213213 registrations . Add ( handler . Registration ) ;
214214 }
215215
216+ if ( registrations . Count == 0 )
217+ return ; // No dynamic registrations supported by client.
218+
216219 var @params = new RegistrationParams ( ) { Registrations = registrations } ;
217220
218221 await this . RegisterCapability ( @params ) ;
@@ -260,4 +263,4 @@ public void Dispose()
260263
261264 public IDictionary < string , JToken > Experimental { get ; } = new Dictionary < string , JToken > ( ) ;
262265 }
263- }
266+ }
You can’t perform that action at this time.
0 commit comments