Class TranslationProviderCredentialStore
TranslationProviderCredentialStore class represents a standard implementation of a translation provider credential store.
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class TranslationProviderCredentialStore : ITranslationProviderCredentialStore, IXmlSerializable
Constructors
TranslationProviderCredentialStore()
Declaration
public TranslationProviderCredentialStore()
Methods
AddCredential(Uri, TranslationProviderCredential)
Adds the given credential associated with the given uri.
Declaration
public void AddCredential(Uri uri, TranslationProviderCredential credential)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | uri |
TranslationProviderCredential | credential | credential |
Clear()
Clears all the credentials.
Declaration
public void Clear()
GetCredential(Uri)
Gets the credential with the given uri.
Declaration
public TranslationProviderCredential GetCredential(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | uri |
Returns
Type | Description |
---|---|
TranslationProviderCredential | credential |
Remarks
If the credential does not exist then it returns null.
GetSchema()
Gets the xml schema.
Declaration
public XmlSchema GetSchema()
Returns
Type | Description |
---|---|
XmlSchema | xml schema |
ReadXml(XmlReader)
Reads the xml from the given reader.
Declaration
public void ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
XmlReader | reader | reader |
RemoveCredential(Uri)
Removes the credential associated with the given uri.
Declaration
public void RemoveCredential(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | uri |
WriteXml(XmlWriter)
Writes the xml to the given writer.
Declaration
public void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | writer | writer |
Events
CredentialsChanged
CredentialsChanged event is fired whenever the credentials are added to or removed from the store.
Declaration
public event EventHandler CredentialsChanged
Event Type
Type | Description |
---|---|
EventHandler |