Beispiel #1
0
        /// <summary>
        /// Create an account association with the Epic Online Service as a product user given their external auth credentials
        /// </summary>
        /// <param name="options">structure containing a continuance token from a "user not found" response during Login (always try login first)</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 create operation completes, either successfully or in error</param>
        public void CreateUser(CreateUserOptions options, object clientData, OnCreateUserCallback completionDelegate)
        {
            var optionsInternal = Helper.CopyProperties <CreateUserOptionsInternal>(options);

            var completionDelegateInternal = new OnCreateUserCallbackInternal(OnCreateUser);
            var clientDataAddress          = IntPtr.Zero;

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

            EOS_Connect_CreateUser(InnerHandle, ref optionsInternal, clientDataAddress, completionDelegateInternal);
            Helper.TryMarshalDispose(ref optionsInternal);
        }
Beispiel #2
0
 private static extern void EOS_Connect_CreateUser(IntPtr handle, ref CreateUserOptionsInternal options, IntPtr clientData, OnCreateUserCallbackInternal completionDelegate);