コード例 #1
0
        /// <summary>
        /// Requests that the provided entitlement be marked redeemed. This will cause that entitlement
        /// to no longer be returned from QueryEntitlements unless the include redeemed request flag is set true.
        /// </summary>
        /// <param name="options">structure containing entitlement to redeem</param>
        /// <param name="clientData">arbitrary data that is passed back to you in the CompletionDelegate</param>
        /// <param name="completionDelegate">a callback that is fired when the async operation completes, either successfully or in error</param>
        public void RedeemEntitlements(RedeemEntitlementsOptions options, object clientData, OnRedeemEntitlementsCallback completionDelegate)
        {
            var optionsInternal = Helper.CopyProperties <RedeemEntitlementsOptionsInternal>(options);

            var completionDelegateInternal = new OnRedeemEntitlementsCallbackInternal(OnRedeemEntitlements);
            var clientDataAddress          = IntPtr.Zero;

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_Ecom_RedeemEntitlements(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal);
            Helper.TryMarshalDispose(ref optionsInternal);
        }
コード例 #2
0
 private static extern void EOS_Ecom_RedeemEntitlements(IntPtr handle, ref RedeemEntitlementsOptionsInternal options, IntPtr clientData, OnRedeemEntitlementsCallbackInternal completionDelegate);