private void OnNativeCallback(ref ModuleCallbackAuthenticationIn authIn, int inSize, ref ModuleCallbackAuthenticationOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. uri = authIn.Uri; realm = authIn.Realm; previousAttemptFailed = authIn.PreviousAttemptFailed; authType = authIn.AuthType; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler(this); // Copy the values back to the authOut. authOut.Username = username; authOut.Password = password; } }
private void OnNativeCallback (ref ModuleCallbackAuthenticationIn authIn, int inSize, ref ModuleCallbackAuthenticationOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. uri = authIn.Uri; realm = authIn.Realm; previousAttemptFailed = authIn.PreviousAttemptFailed; authType = authIn.AuthType; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler (this); // Copy the values back to the authOut. authOut.Username = username; authOut.Password = password; } }
private void OnNativeAsyncCallback(ref ModuleCallbackAuthenticationIn authIn, int inSize, ref ModuleCallbackAuthenticationOut authOut, int outSize, IntPtr data, IntPtr resp, IntPtr resp_data) { OnNativeCallback(ref authIn, inSize, ref authOut, outSize, data); }
private void OnNativeAsyncCallback (ref ModuleCallbackAuthenticationIn authIn, int inSize, ref ModuleCallbackAuthenticationOut authOut, int outSize, IntPtr data, IntPtr resp, IntPtr resp_data) { OnNativeCallback (ref authIn, inSize, ref authOut, outSize, data); }