Class ServiceAuth
Properties for service authentication
Carrier object for ServiceAuth. Services for the ServiceAuth Carrier is available from the User Agent.Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.2.0.0")]
public class ServiceAuth : Carrier
Examples
Get ServiceAuth 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new UserAgent();
var serviceAuth = agent.GetServiceAuth( 123 );
}
Constructors
ServiceAuth()
Default constructor
Declaration
public ServiceAuth()
See Also
Properties
AuthType
The type of authentication, plain-text, OAuth...
Declaration
[DataMember]
public virtual string AuthType { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
Password
The (decrypted) password or token
Declaration
[DataMember]
public virtual string Password { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
Port
The server port
Declaration
[DataMember]
public virtual int Port { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
Server
The mail server
Declaration
[DataMember]
public virtual string Server { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
ServiceAuthId
The primary key
Declaration
[DataMember]
public virtual int ServiceAuthId { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
Username
The username
Declaration
[DataMember]
public virtual string Username { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The carrier contents. |
See Also
ToString(string)
Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.
Declaration
public string ToString(string prefix)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | The line prefix (typically used for indenting) |
Returns
Type | Description |
---|---|
string | The carrier contents. |