From: Krzysztof Dynowski Date: Tue, 16 May 2017 10:12:46 +0000 (+0200) Subject: Make optional token param for Async methods X-Git-Tag: submit/trunk/20170823.075128~104^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e8e9503f7057d5743d16737eba1527d3e49e448;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Make optional token param for Async methods Change-Id: Ie530944b3b270408e432f583c0248c985d5684ce --- diff --git a/src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs b/src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs index d5401dd..d4ac3ab 100644 --- a/src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs +++ b/src/Tizen.Security.TEEC/Tizen.Security.TEEC/Libteec.cs @@ -288,7 +288,7 @@ namespace Tizen.Security.TEEC /// The command /// The array of parameters /// The token for task manipulation - public async Task InvokeCommandAsync(uint commandID, Parameter[] paramlist, CancellationToken token) + public async Task InvokeCommandAsync(uint commandID, Parameter[] paramlist, CancellationToken token = default(CancellationToken)) { await Task.Factory.StartNew(() => InvokeCommand(commandID, paramlist)); } @@ -362,7 +362,7 @@ namespace Tizen.Security.TEEC /// The data to be verified by given login method /// The parameters to be passed to TA open-session-callback /// The token for task manipulation - public async Task OpenSessionAsync(Guid destination, uint loginMethod, byte[] connectionData, Parameter[] paramlist, CancellationToken token) + public async Task OpenSessionAsync(Guid destination, uint loginMethod, byte[] connectionData, Parameter[] paramlist, CancellationToken token = default(CancellationToken)) { Task task = Task.Factory.StartNew(() => { @@ -376,7 +376,7 @@ namespace Tizen.Security.TEEC /// /// The UUID of destination TA /// The token for task manipulation - public async Task OpenSessionAsync(Guid destination, CancellationToken token) + public async Task OpenSessionAsync(Guid destination, CancellationToken token = default(CancellationToken)) { Task task = Task.Factory.StartNew(() => {