@@ -438,8 +438,8 @@ private static bool TryMapCommandTypesFromMethod(
438
438
commandClassType = "global::CommunityToolkit.Mvvm.Input.RelayCommand" ;
439
439
delegateType = "global::System.Action" ;
440
440
supportsCancellation = false ;
441
- commandTypeArguments = ImmutableArray . Create ( parameter . Type . GetFullyQualifiedName ( ) ) ;
442
- delegateTypeArguments = ImmutableArray . Create ( parameter . Type . GetFullyQualifiedName ( ) ) ;
441
+ commandTypeArguments = ImmutableArray . Create ( parameter . Type . GetFullyQualifiedNameWithNullabilityAnnotations ( ) ) ;
442
+ delegateTypeArguments = ImmutableArray . Create ( parameter . Type . GetFullyQualifiedNameWithNullabilityAnnotations ( ) ) ;
443
443
444
444
return true ;
445
445
}
@@ -472,7 +472,7 @@ private static bool TryMapCommandTypesFromMethod(
472
472
delegateType = "global::System.Func" ;
473
473
supportsCancellation = true ;
474
474
commandTypeArguments = ImmutableArray < string > . Empty ;
475
- delegateTypeArguments = ImmutableArray . Create ( singleParameter . Type . GetFullyQualifiedName ( ) , "global::System.Threading.Tasks.Task" ) ;
475
+ delegateTypeArguments = ImmutableArray . Create ( "global::System.Threading.CancellationToken" , "global::System.Threading.Tasks.Task" ) ;
476
476
477
477
return true ;
478
478
}
@@ -482,8 +482,8 @@ private static bool TryMapCommandTypesFromMethod(
482
482
commandClassType = "global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand" ;
483
483
delegateType = "global::System.Func" ;
484
484
supportsCancellation = false ;
485
- commandTypeArguments = ImmutableArray . Create ( singleParameter . Type . GetFullyQualifiedName ( ) ) ;
486
- delegateTypeArguments = ImmutableArray . Create ( singleParameter . Type . GetFullyQualifiedName ( ) , "global::System.Threading.Tasks.Task" ) ;
485
+ commandTypeArguments = ImmutableArray . Create ( singleParameter . Type . GetFullyQualifiedNameWithNullabilityAnnotations ( ) ) ;
486
+ delegateTypeArguments = ImmutableArray . Create ( singleParameter . Type . GetFullyQualifiedNameWithNullabilityAnnotations ( ) , "global::System.Threading.Tasks.Task" ) ;
487
487
488
488
return true ;
489
489
}
@@ -498,8 +498,8 @@ private static bool TryMapCommandTypesFromMethod(
498
498
commandClassType = "global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand" ;
499
499
delegateType = "global::System.Func" ;
500
500
supportsCancellation = true ;
501
- commandTypeArguments = ImmutableArray . Create ( firstParameter . Type . GetFullyQualifiedName ( ) ) ;
502
- delegateTypeArguments = ImmutableArray . Create ( firstParameter . Type . GetFullyQualifiedName ( ) , secondParameter . Type . GetFullyQualifiedName ( ) , "global::System.Threading.Tasks.Task" ) ;
501
+ commandTypeArguments = ImmutableArray . Create ( firstParameter . Type . GetFullyQualifiedNameWithNullabilityAnnotations ( ) ) ;
502
+ delegateTypeArguments = ImmutableArray . Create ( firstParameter . Type . GetFullyQualifiedNameWithNullabilityAnnotations ( ) , "global::System.Threading.CancellationToken" , "global::System.Threading.Tasks.Task" ) ;
503
503
504
504
return true ;
505
505
}
0 commit comments