/// <summary> /// Loads a profile from a file. It will load the profile from a .kameleo file. /// It will load all the profile settings, browsing data, cookies, history, /// bookmarks, installed extension / addons. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ProfileResponse> LoadProfileAsync(this IKameleoLocalApiClient operations, LoadProfileRequest body = default(LoadProfileRequest), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.LoadProfileWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Loads a profile from a file. It will load the profile from a .kameleo file. /// It will load all the profile settings, browsing data, cookies, history, /// bookmarks, installed extension / addons. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> public static ProfileResponse LoadProfile(this IKameleoLocalApiClient operations, LoadProfileRequest body = default(LoadProfileRequest)) { return(operations.LoadProfileAsync(body).GetAwaiter().GetResult()); }