Class RepositoryConnectionInfo
Encapsulates the repository connection information.
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Repository
Assembly: Algenta.Colectica.Model.dll
Syntax
public class RepositoryConnectionInfo : NotificationObject, INotifyPropertyChanged
Examples
// The WcfRepositoryClient takes a configation object
// detailing how to connect to the Repository.
var connectionInfo = new RepositoryConnectionInfo()
{
// TODO Replace this with the hostname of your Colectica Repository
Url = "localhost",
AuthenticationMethod = RepositoryAuthenticationMethod.Windows,
TransportMethod = RepositoryTransportMethod.NetTcp,
};
// Create the client object, passing in the connection information.
var client = new WcfRepositoryClient(connectionInfo);
Properties
AuthenticationChoices
Gets the allowed authentication choices for the selected transport.
Declaration
public ObservableCollection<RepositoryAuthenticationMethod> AuthenticationChoices { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<RepositoryAuthenticationMethod> |
AuthenticationMethod
Gets or sets the authentication method.
Declaration
public RepositoryAuthenticationMethod AuthenticationMethod { get; set; }
Property Value
Type | Description |
---|---|
RepositoryAuthenticationMethod |
ClientId
Gets or sets the Azure AD client identifier.
Declaration
public string ClientId { get; set; }
Property Value
Type | Description |
---|---|
String |
DisplayLabel
Gets the display label.
Declaration
public string DisplayLabel { get; }
Property Value
Type | Description |
---|---|
String | The display label. |
HostName
Gets the DNS hostname of the repository.
Declaration
public string HostName { get; }
Property Value
Type | Description |
---|---|
String |
IsAzureActiveDirectoryAuthentication
Gets whether the authentication method is username/password.
Declaration
public bool IsAzureActiveDirectoryAuthentication { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsUserNameAuthentication
Gets whether the authentication method is username/password.
Declaration
public bool IsUserNameAuthentication { get; }
Property Value
Type | Description |
---|---|
Boolean |
Password
Gets or sets the password, used when the AuthenticationMethod
is set to UserName
.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
String |
PasswordEnc
Gets or sets the encoded password, used when the AuthenticationMethod
is set to UserName
..
Declaration
public string PasswordEnc { get; set; }
Property Value
Type | Description |
---|---|
String | The password enc. |
Port
Gets the port on which the repository listens.
Declaration
public int Port { get; }
Property Value
Type | Description |
---|---|
Int32 |
Scope
Gets or sets the Azure AD scope.
Declaration
public string Scope { get; set; }
Property Value
Type | Description |
---|---|
String |
TenantId
Gets or sets the Azure AD tenant identifier.
Declaration
public string TenantId { get; set; }
Property Value
Type | Description |
---|---|
String |
TransportMethod
Gets or sets the transport method.
Declaration
public RepositoryTransportMethod TransportMethod { get; set; }
Property Value
Type | Description |
---|---|
RepositoryTransportMethod |
Url
Gets or sets the URL of the repository.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
String |
UserName
Gets or sets username, used when the AuthenticationMethod
is set to UserName
.
Declaration
public string UserName { get; set; }
Property Value
Type | Description |
---|---|
String |
UseWindowsAuthentication
Gets or sets a value indicating whether the connection should use Windows authentication.
Declaration
[Obsolete("Use AuthenticationMethod property instead")]
public bool UseWindowsAuthentication { get; set; }
Property Value
Type | Description |
---|---|
Boolean |