Add net10.0 assets and run some fixers (#875)
This commit is contained in:
parent
e7b403b820
commit
bfc0980ef5
1 changed files with 168 additions and 194 deletions
|
|
@ -11,8 +11,6 @@ namespace ModelContextProtocol.Client;
|
|||
/// </remarks>
|
||||
public sealed class McpClientOptions
|
||||
{
|
||||
private McpClientHandlers? _handlers;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets information about this client implementation, including its name and version.
|
||||
/// </summary>
|
||||
|
|
@ -71,11 +69,11 @@ public sealed class McpClientOptions
|
|||
/// </summary>
|
||||
public McpClientHandlers Handlers
|
||||
{
|
||||
get => _handlers ??= new();
|
||||
get => field ??= new();
|
||||
set
|
||||
{
|
||||
Throw.IfNull(value);
|
||||
_handlers = value;
|
||||
field = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue