mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-22 14:08:49 +00:00
throw on null client
This commit is contained in:
parent
027ce96ed3
commit
55512d6c8d
@ -22,7 +22,9 @@ public sealed class CommandsExtension : VirtualParadiseClientExtension
|
||||
/// </summary>
|
||||
/// <param name="client">The owning client.</param>
|
||||
/// <param name="configuration">The configuration to use.</param>
|
||||
/// <exception cref="ArgumentNullException"><paramref name="configuration" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// <paramref name="client" /> or <paramref name="configuration" /> is <see langword="null" />.
|
||||
/// </exception>
|
||||
public CommandsExtension(VirtualParadiseClient client, CommandsExtensionConfiguration configuration)
|
||||
: base(client)
|
||||
{
|
||||
|
@ -11,9 +11,10 @@ public abstract class VirtualParadiseClientExtension
|
||||
/// Initializes a new instance of the <see cref="VirtualParadiseClientExtension" /> class.
|
||||
/// </summary>
|
||||
/// <param name="client">The owning client.</param>
|
||||
/// <exception cref="ArgumentNullException"><paramref name="client" /> is <see langword="null" />.</exception>
|
||||
protected VirtualParadiseClientExtension(VirtualParadiseClient client)
|
||||
{
|
||||
Client = client;
|
||||
Client = client ?? throw new ArgumentNullException(nameof(client));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user