C# 클래스 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.
파일 보기 프로젝트 열기: pushtechnology/diffusion-examples

공개 메소드들

메소드 설명
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.

메소드 상세

ChangePrincipal() 공개 메소드

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.
리턴 void

ClientUsingCredentials() 공개 메소드

public ClientUsingCredentials ( ) : PushTechnology.ClientInterface.Client.Factories
리턴 PushTechnology.ClientInterface.Client.Factories

Close() 공개 메소드

Close the session.
public Close ( ) : void
리턴 void