C# Class Examples.ClientUsingCredentials

This demonstrates a client's use of credentials, specifically the ability to change the principal for an active session. This is not a realistic use case on its own, but it shown separately here for clarity.
ファイルを表示 Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
ChangePrincipal ( string principal, string password, IChangePrincipalCallback callback ) : void

Request a change of principal for the session.

ClientUsingCredentials ( ) : PushTechnology.ClientInterface.Client.Factories
Close ( ) : void

Close the session.

Method Details

ChangePrincipal() public method

Request a change of principal for the session.
public ChangePrincipal ( string principal, string password, IChangePrincipalCallback callback ) : void
principal string The new principal name.
password string The password.
callback IChangePrincipalCallback Notifies success or failure.
return void

ClientUsingCredentials() public method

public ClientUsingCredentials ( ) : PushTechnology.ClientInterface.Client.Factories
return PushTechnology.ClientInterface.Client.Factories

Close() public method

Close the session.
public Close ( ) : void
return void