Exemplo n.º 1
0
        /// <summary>
        /// Retrieve the equivalent product user ids from a list of external account ids from supported account providers. The values will be cached and retrievable via <see cref="GetExternalAccountMapping" />
        /// </summary>
        /// <param name="options">structure containing a list of external account ids, in string form, to query for the product user id representation</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 query operation completes, either successfully or in error</param>
        public void QueryExternalAccountMappings(QueryExternalAccountMappingsOptions options, object clientData, OnQueryExternalAccountMappingsCallback completionDelegate)
        {
            var optionsInternal = Helper.CopyProperties <QueryExternalAccountMappingsOptionsInternal>(options);

            var completionDelegateInternal = new OnQueryExternalAccountMappingsCallbackInternal(OnQueryExternalAccountMappings);
            var clientDataAddress          = IntPtr.Zero;

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

            EOS_Connect_QueryExternalAccountMappings(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal);
            Helper.TryMarshalDispose(ref optionsInternal);
        }
Exemplo n.º 2
0
 private static extern void EOS_Connect_QueryExternalAccountMappings(IntPtr handle, ref QueryExternalAccountMappingsOptionsInternal options, IntPtr clientData, OnQueryExternalAccountMappingsCallbackInternal completionDelegate);