Skip to content

Commit

Permalink
update DiagnosticDescriptorItems
Browse files Browse the repository at this point in the history
  • Loading branch information
nenoNaninu committed Nov 23, 2023
1 parent 671a313 commit 43d82dc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public static class DiagnosticDescriptorItems
category: "Usage",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The return type of methods in the interface must be Task or Task<T>.");
description: "The return type of methods in the interface used for receiver must be Task or Task<T>.");

public static readonly DiagnosticDescriptor HubMethodCancellationTokenParameterRule = new(
id: "TSRC005",
title: "CancellationToken can be used as a parameter only in the server-to-client streaming method",
messageFormat: "CancellationToken cannot be used as a parameter in the {0}.",
messageFormat: "CancellationToken cannot be used as a parameter in the {0}",
category: "Usage",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
Expand All @@ -61,7 +61,7 @@ public static class DiagnosticDescriptorItems
public static readonly DiagnosticDescriptor HubMethodMultipleCancellationTokenParameterRule = new(
id: "TSRC006",
title: "Using multiple CancellationToken in method parameters is prohibited",
messageFormat: "Multiple CancellationToken cannot be used as a parameter in the {0}.",
messageFormat: "Multiple CancellationToken cannot be used as a parameter in the {0}",
category: "Usage",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
Expand All @@ -70,7 +70,7 @@ public static class DiagnosticDescriptorItems
public static readonly DiagnosticDescriptor ServerStreamingMethodParameterRule = new(
id: "TSRC007",
title: "Using IAsyncEnumerable<T> or ChannelReader<T> as a parameter in a server-to-client streaming method is prohibited",
messageFormat: "Do not use IAsyncEnumerable<T> or ChannelReader<T> as a parameter because the {0} was analyzed as a server-to-client streaming method.",
messageFormat: "Do not use IAsyncEnumerable<T> or ChannelReader<T> as a parameter because the {0} was analyzed as a server-to-client streaming method",
category: "Usage",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
Expand Down

0 comments on commit 43d82dc

Please sign in to comment.