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 |
AzureAuthenticationMode
The mode of azure authentication
Declaration
public AzureAuthenticationMode AzureAuthenticationMode { get; set; }
Property Value
Type | Description |
---|---|
AzureAuthenticationMode |
ClientCertificateThumbprint
Gets or sets the Azure AD client certificate thumbprint, the certificate should be in the user's certifacate store
Declaration
public string ClientCertificateThumbprint { get; set; }
Property Value
Type | Description |
---|---|
string |
ClientId
Gets or sets the Azure AD client identifier.
Declaration
public string ClientId { get; set; }
Property Value
Type | Description |
---|---|
string |
ClientSecret
Gets or sets the Azure AD client secret, for confidential clients
Declaration
public string ClientSecret { 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 |
---|---|
bool |
IsAzureOrOpenIdAuthentication
Gets whether the authentication method is either Azure AD or Open ID Connect.
Declaration
public bool IsAzureOrOpenIdAuthentication { get; }
Property Value
Type | Description |
---|---|
bool |
IsOpenIdConnectAuthentication
Gets whether the authentication method is OpenIdConnect.
Declaration
public bool IsOpenIdConnectAuthentication { get; }
Property Value
Type | Description |
---|---|
bool |
IsUserNameAuthentication
Gets whether the authentication method is username/password.
Declaration
public bool IsUserNameAuthentication { get; }
Property Value
Type | Description |
---|---|
bool |
JWT
A manually assigned JWT token
Declaration
public string JWT { get; set; }
Property Value
Type | Description |
---|---|
string |
OpenIDConnectUrl
Gets or sets the OpenID Connect server url.
Declaration
public string OpenIDConnectUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |
---|---|
int |
Scope
Gets or sets the Azure AD scope.
Declaration
public string Scope { get; set; }
Property Value
Type | Description |
---|---|
string |
Scopes
Gets or sets the OpenID Connect scopes.
Declaration
public string[] Scopes { 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 |
TimeoutInSeconds
Gets or sets the request timeout, in seconds. Currently this is only used for REST clients.
Declaration
public int TimeoutInSeconds { get; set; }
Property Value
Type | Description |
---|---|
int |
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 |
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 |
---|---|
bool |
UserName
Gets or sets username, used when the AuthenticationMethod
is set to UserName
.
Declaration
public string UserName { get; set; }
Property Value
Type | Description |
---|---|
string |