You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CommunityToolkit.Mvvm.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -191,17 +191,17 @@ internal static class DiagnosticDescriptors
191
191
/// <summary>
192
192
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when <c>RelayCommandAttribute.AllowConcurrentExecutions</c> is being set for a non-asynchronous method.
193
193
/// <para>
194
-
/// Format: <c>"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying a concurrency control setting, as it maps to a non-asynchronous command type"</c>.
194
+
/// Format: <c>"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying a concurrency control option, as it maps to a non-asynchronous command type"</c>.
title:"Invalid concurrency control setting usage",
200
-
messageFormat:"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying a concurrency control setting, as it maps to a non-asynchronous command type",
199
+
title:"Invalid concurrency control option usage",
200
+
messageFormat:"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying a concurrency control option, as it maps to a non-asynchronous command type",
201
201
category:typeof(RelayCommandGenerator).FullName,
202
202
defaultSeverity:DiagnosticSeverity.Error,
203
203
isEnabledByDefault:true,
204
-
description:"Cannot apply the [RelayCommand] attribute specifying a concurrency control setting to methods mapping to non-asynchronous command types.",
204
+
description:"Cannot apply the [RelayCommand] attribute specifying a concurrency control option to methods mapping to non-asynchronous command types.",
205
205
helpLinkUri:"https://aka.ms/mvvmtoolkit");
206
206
207
207
/// <summary>
@@ -491,4 +491,20 @@ internal static class DiagnosticDescriptors
491
491
isEnabledByDefault:true,
492
492
description:"Annotating a field with [NotifyDataErrorInfo] is not necessary if the containing type has or inherits [NotifyDataErrorInfo] at the class-level.",
493
493
helpLinkUri:"https://aka.ms/mvvmtoolkit");
494
+
495
+
/// <summary>
496
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when <c>RelayCommandAttribute.FlowExceptionsToTaskScheduler</c> is being set for a non-asynchronous method.
497
+
/// <para>
498
+
/// Format: <c>"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying an exception flow option, as it maps to a non-asynchronous command type"</c>.
messageFormat:"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying a task scheduler exception flow option, as it maps to a non-asynchronous command type",
505
+
category:typeof(RelayCommandGenerator).FullName,
506
+
defaultSeverity:DiagnosticSeverity.Error,
507
+
isEnabledByDefault:true,
508
+
description:"Cannot apply the [RelayCommand] attribute specifying a task scheduler exception flow option to methods mapping to non-asynchronous command types.",
/// <param name="canExecute">The execution status logic.</param>
150
-
/// <param name="allowConcurrentExecutions">Whether or not to allow concurrent executions of the command.</param>
150
+
/// <param name="options">The options to use to configure the async command.</param>
151
151
/// <exception cref="System.ArgumentNullException">Thrown if <paramref name="execute"/> or <paramref name="canExecute"/> are <see langword="null"/>.</exception>
/// <param name="canExecute">The execution status logic.</param>
182
-
/// <param name="allowConcurrentExecutions">Whether or not to allow concurrent executions of the command.</param>
182
+
/// <param name="options">The options to use to configure the async command.</param>
183
183
/// <exception cref="System.ArgumentNullException">Thrown if <paramref name="cancelableExecute"/> or <paramref name="canExecute"/> are <see langword="null"/>.</exception>
0 commit comments