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 2
2
<PropertyGroup >
3
3
<TargetFrameworks >net46;netstandard1.6</TargetFrameworks >
4
4
<PlatformTarget >AnyCPU</PlatformTarget >
5
+ <LangVersion >Latest</LangVersion >
5
6
<!-- Needed for Microsoft.Composition -->
6
7
<PackageTargetFallback Condition =" '$(TargetFramework)' == 'netstandard1.6' " >$(PackageTargetFallback);dotnet5.4;portable-net45+win8</PackageTargetFallback >
7
8
<PackageVersion Condition =" '$(GitVersion_NuGetVersion)' != ''" >$(GitVersion_NuGetVersion)</PackageVersion >
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Collections . Concurrent ;
3
3
using System . Collections . Generic ;
4
4
using System . IO ;
@@ -213,6 +213,9 @@ private async Task DynamicallyRegisterHandlers()
213
213
registrations . Add ( handler . Registration ) ;
214
214
}
215
215
216
+ if ( registrations . Count == 0 )
217
+ return ; // No dynamic registrations supported by client.
218
+
216
219
var @params = new RegistrationParams ( ) { Registrations = registrations } ;
217
220
218
221
await this . RegisterCapability ( @params ) ;
@@ -260,4 +263,4 @@ public void Dispose()
260
263
261
264
public IDictionary < string , JToken > Experimental { get ; } = new Dictionary < string , JToken > ( ) ;
262
265
}
263
- }
266
+ }
You can’t perform that action at this time.
0 commit comments