private void OnNativeCallback(ref ModuleCallbackFillAuthenticationIn authIn, int inSize, ref ModuleCallbackFillAuthenticationOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. uri = authIn.Uri; protocol = authIn.Protocol; server = authIn.Server; obj = authIn.Object; port = authIn.Port; authtype = authIn.Authtype; username = authIn.Username; domain = authIn.Domain; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler(this); // Copy the values back to the authOut. authOut.Valid = valid; authOut.Username = username; authOut.Domain = domain; authOut.Password = password; } }
private void OnNativeCallback (ref ModuleCallbackFillAuthenticationIn authIn, int inSize, ref ModuleCallbackFillAuthenticationOut authOut, int outSize, IntPtr data) { // Copy the authIn fields. uri = authIn.Uri; protocol = authIn.Protocol; server = authIn.Server; obj = authIn.Object; port = authIn.Port; authtype = authIn.Authtype; username = authIn.Username; domain = authIn.Domain; // Activate the callback. ModuleCallbackHandler handler = Callback; if (handler != null) { handler (this); // Copy the values back to the authOut. authOut.Valid = valid; authOut.Username = username; authOut.Domain = domain; authOut.Password = password; } }
private void OnNativeAsyncCallback(ref ModuleCallbackFillAuthenticationIn authIn, int inSize, ref ModuleCallbackFillAuthenticationOut authOut, int outSize, IntPtr data, IntPtr resp, IntPtr resp_data) { OnNativeCallback(ref authIn, inSize, ref authOut, outSize, data); }
private void OnNativeAsyncCallback (ref ModuleCallbackFillAuthenticationIn authIn, int inSize, ref ModuleCallbackFillAuthenticationOut authOut, int outSize, IntPtr data, IntPtr resp, IntPtr resp_data) { OnNativeCallback (ref authIn, inSize, ref authOut, outSize, data); }