Skip to content

Commit 665fda0

Browse files
authored
Make (dis)connect options nullable in interface (#239)
1 parent 879c5b3 commit 665fda0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/HiveMQtt/Client/IHiveMQClient.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ public interface IHiveMQClient : IDisposable
6161
/// <param name="connectOptions">The connect override options for the MQTT Connect call. These settings
6262
/// will override the settings in HiveMQClientOptions.</param>
6363
/// <returns>A ConnectResult class representing the result of the MQTT connect call.</returns>
64-
public Task<ConnectResult> ConnectAsync(ConnectOptions? connectOptions);
64+
public Task<ConnectResult> ConnectAsync(ConnectOptions? connectOptions = null);
6565

6666
/// <summary>
6767
/// Asynchronous disconnect from the previously connected MQTT broker.
6868
/// </summary>
6969
/// <param name="options">The options for the MQTT Disconnect call.</param>
7070
/// <returns>A boolean indicating on success or failure.</returns>
71-
public Task<bool> DisconnectAsync(DisconnectOptions? options);
71+
public Task<bool> DisconnectAsync(DisconnectOptions? options = null);
7272

7373
/// <summary>
7474
/// Publish a message to an MQTT topic.

0 commit comments

Comments
 (0)