Add 3-arg RequestContext constructor and obsolete 2-arg to eliminate null-forgiving operator usage (#1462)
This commit is contained in:
parent
afc40d1e2e
commit
7dcdbafe9d
1 changed files with 190 additions and 219 deletions
|
|
@ -77,7 +77,7 @@ builder.Services.AddMcpServer()
|
|||
int startIndex = 0;
|
||||
|
||||
// Parse cursor to determine starting position
|
||||
if (ctx.Params?.Cursor is { } cursor)
|
||||
if (ctx.Params.Cursor is { } cursor)
|
||||
{
|
||||
startIndex = int.Parse(cursor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue