IInteractiveChannelInitializer.BeginDisplayInitializationUI Method

Definition

An asynchronous call to begin using a user interface to obtain credential information.

C#
public IAsyncResult BeginDisplayInitializationUI(System.ServiceModel.IClientChannel channel, AsyncCallback callback, object state);

Parameters

channel
IClientChannel

The client channel.

callback
AsyncCallback

The callback object.

state
Object

Any state data.

Returns

The IAsyncResult to use to call back when processing has completed.

Remarks

To implement IInteractiveChannelInitializer, perform the following steps in IInteractiveChannelInitializer.BeginDisplayInitializationUI:

  1. Prompt the user in what way you see fit and obtain an appropriate System.Net.NetworkCredential.

  2. Add a custom channel parameter object to the collection returned by the IChannel.GetProperty method on the IClientChannel object with a type parameter of System.ServiceModel.Channels.ChannelParameterCollection. This channel parameter object is used by the custom System.ServiceModel.ClientCredentialsSecurityTokenManager to establish the security tokens for the channel.

  3. Return.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)