/// <summary> /// Gets citizen data by CPR /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// LoGIC subscription ID /// </param> /// <param name='cpr'> /// Personal identification number of danish citizen /// </param> /// <param name='configurationId'> /// Identifier that represents CPR environment and associated configuration /// which this request will be sent with. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetByCprAsync(this IInternalClient operations, System.Guid subscriptionId, string cpr, System.Guid?configurationId = default(System.Guid?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByCprWithHttpMessagesAsync(subscriptionId, cpr, configurationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }