From 711f464a6a17744696b3f76f10081d4823430def Mon Sep 17 00:00:00 2001 From: ScottIsAFool Date: Sat, 14 Mar 2015 16:54:47 +0000 Subject: [PATCH] Updated IConnectionManager with default CancellationToken --- MediaBrowser.Model/ApiClient/IConnectionManager.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MediaBrowser.Model/ApiClient/IConnectionManager.cs b/MediaBrowser.Model/ApiClient/IConnectionManager.cs index 341df2728..f3ad7c77b 100644 --- a/MediaBrowser.Model/ApiClient/IConnectionManager.cs +++ b/MediaBrowser.Model/ApiClient/IConnectionManager.cs @@ -66,7 +66,7 @@ namespace MediaBrowser.Model.ApiClient /// /// The cancellation token. /// Task<ConnectionResult>. - Task Connect(CancellationToken cancellationToken); + Task Connect(CancellationToken cancellationToken = default(CancellationToken)); /// /// Connects the specified API client. @@ -74,7 +74,7 @@ namespace MediaBrowser.Model.ApiClient /// The API client. /// The cancellation token. /// Task<ConnectionResult>. - Task Connect(IApiClient apiClient, CancellationToken cancellationToken); + Task Connect(IApiClient apiClient, CancellationToken cancellationToken = default(CancellationToken)); /// /// Connects the specified server. @@ -82,7 +82,7 @@ namespace MediaBrowser.Model.ApiClient /// The server. /// The cancellation token. /// Task<ConnectionResult>. - Task Connect(ServerInfo server, CancellationToken cancellationToken); + Task Connect(ServerInfo server, CancellationToken cancellationToken = default(CancellationToken)); /// /// Connects the specified server. @@ -91,7 +91,7 @@ namespace MediaBrowser.Model.ApiClient /// The options. /// The cancellation token. /// Task<ConnectionResult>. - Task Connect(ServerInfo server, ConnectionOptions options, CancellationToken cancellationToken); + Task Connect(ServerInfo server, ConnectionOptions options, CancellationToken cancellationToken = default(CancellationToken)); /// /// Connects the specified server. @@ -99,7 +99,7 @@ namespace MediaBrowser.Model.ApiClient /// The address. /// The cancellation token. /// Task<ConnectionResult>. - Task Connect(string address, CancellationToken cancellationToken); + Task Connect(string address, CancellationToken cancellationToken = default(CancellationToken)); /// /// Logouts this instance. @@ -142,7 +142,7 @@ namespace MediaBrowser.Model.ApiClient /// Gets the available servers. /// /// The cancellation token. - Task> GetAvailableServers(CancellationToken cancellationToken); + Task> GetAvailableServers(CancellationToken cancellationToken = default(CancellationToken)); /// /// Authenticates an offline user with their password