Skip to content

Commit 0792a65

Browse files
committed
Little fixes for rebase to latest main
1 parent c8fb356 commit 0792a65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ModelContextProtocol.ConformanceServer/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ await ctx.Server.SampleAsync([
4747
new ChatMessage(ChatRole.System, "You are a helpful test server"),
4848
new ChatMessage(ChatRole.User, $"Resource {uri}, context: A new subscription was started"),
4949
],
50-
options: new ChatOptions
50+
chatOptions: new ChatOptions
5151
{
5252
MaxOutputTokens = 100,
5353
Temperature = 0.7f,

tests/ModelContextProtocol.ConformanceServer/Tools/ConformanceTools.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,23 @@ public static async Task<string> ToolWithProgress(
141141
{
142142
Progress = 0,
143143
Total = 100,
144-
}, cancellationToken);
144+
}, cancellationToken: cancellationToken);
145145

146146
await Task.Delay(50, cancellationToken);
147147

148148
await server.NotifyProgressAsync(progressToken.Value, new ProgressNotificationValue
149149
{
150150
Progress = 50,
151151
Total = 100,
152-
}, cancellationToken);
152+
}, cancellationToken: cancellationToken);
153153

154154
await Task.Delay(50, cancellationToken);
155155

156156
await server.NotifyProgressAsync(progressToken.Value, new ProgressNotificationValue
157157
{
158158
Progress = 100,
159159
Total = 100,
160-
}, cancellationToken);
160+
}, cancellationToken: cancellationToken);
161161
}
162162

163163
return progressToken?.ToString() ?? "No progress token provided";

0 commit comments

Comments
 (0)