C# Class EventStore.ClientAPI.UserManagement.UsersClient

显示文件 Open project: EventStore/EventStore Class Usage Examples

Public Methods

Method Description
ChangePassword ( IPEndPoint endPoint, string login, EventStore.ClientAPI.UserManagement.ChangePasswordDetails changePasswordDetails, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task
CreateUser ( IPEndPoint endPoint, EventStore.ClientAPI.UserManagement.UserCreationInformation newUser, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
Delete ( IPEndPoint endPoint, string login, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
Disable ( IPEndPoint endPoint, string login, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
Enable ( IPEndPoint endPoint, string login, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
GetCurrentUser ( IPEndPoint endPoint, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
GetUser ( IPEndPoint endPoint, string login, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ListAll ( IPEndPoint endPoint, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task>
ResetPassword ( IPEndPoint endPoint, string login, EventStore.ClientAPI.UserManagement.ResetPasswordDetails resetPasswordDetails, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
UpdateUser ( IPEndPoint endPoint, string login, EventStore.ClientAPI.UserManagement.UserUpdateInformation updatedUser, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task
UsersClient ( ILogger log, System.TimeSpan operationTimeout ) : System

Private Methods

Method Description
SendDelete ( string url, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, int expectedCode ) : Task
SendGet ( string url, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, int expectedCode ) : Task
SendPost ( string url, string content, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, int expectedCode ) : System.Threading.Tasks.Task
SendPut ( string url, string content, EventStore.ClientAPI.SystemData.UserCredentials userCredentials, int expectedCode ) : System.Threading.Tasks.Task

Method Details

ChangePassword() public method

public ChangePassword ( IPEndPoint endPoint, string login, EventStore.ClientAPI.UserManagement.ChangePasswordDetails changePasswordDetails, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task
endPoint System.Net.IPEndPoint
login string
changePasswordDetails EventStore.ClientAPI.UserManagement.ChangePasswordDetails
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

CreateUser() public method

public CreateUser ( IPEndPoint endPoint, EventStore.ClientAPI.UserManagement.UserCreationInformation newUser, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
endPoint System.Net.IPEndPoint
newUser EventStore.ClientAPI.UserManagement.UserCreationInformation
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

Delete() public method

public Delete ( IPEndPoint endPoint, string login, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
endPoint System.Net.IPEndPoint
login string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

Disable() public method

public Disable ( IPEndPoint endPoint, string login, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
endPoint System.Net.IPEndPoint
login string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

Enable() public method

public Enable ( IPEndPoint endPoint, string login, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
endPoint System.Net.IPEndPoint
login string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

GetCurrentUser() public method

public GetCurrentUser ( IPEndPoint endPoint, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
endPoint System.Net.IPEndPoint
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

GetUser() public method

public GetUser ( IPEndPoint endPoint, string login, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
endPoint System.Net.IPEndPoint
login string
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task

ListAll() public method

public ListAll ( IPEndPoint endPoint, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task>
endPoint System.Net.IPEndPoint
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return Task>

ResetPassword() public method

public ResetPassword ( IPEndPoint endPoint, string login, EventStore.ClientAPI.UserManagement.ResetPasswordDetails resetPasswordDetails, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
endPoint System.Net.IPEndPoint
login string
resetPasswordDetails EventStore.ClientAPI.UserManagement.ResetPasswordDetails
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

UpdateUser() public method

public UpdateUser ( IPEndPoint endPoint, string login, EventStore.ClientAPI.UserManagement.UserUpdateInformation updatedUser, EventStore.ClientAPI.SystemData.UserCredentials userCredentials ) : System.Threading.Tasks.Task
endPoint System.Net.IPEndPoint
login string
updatedUser EventStore.ClientAPI.UserManagement.UserUpdateInformation
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
return System.Threading.Tasks.Task

UsersClient() public method

public UsersClient ( ILogger log, System.TimeSpan operationTimeout ) : System
log ILogger
operationTimeout System.TimeSpan
return System