Interface IDataUpdaterFactory
The interface for a connection provider to the lemonedge platform. This is impltmeneted by a direct database provider, and a web service one.
You do not need to use this provider interface implementations directly, you can access all their functionality from Connector
This can be used for connecting to the lemonedge platform, authenticating and logging in
It also provides an IEntityUpdaterUI for retrieving, querying and updating all data in the system
Namespace: LemonEdge.Client.Core.CommonUI
Assembly: API.dll
Syntax
public interface IDataUpdaterFactory
Properties
LoggedInUserFriendlyConnection
The user friendly part of the connection string specific to this provider type
Declaration
string LoggedInUserFriendlyConnection { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
The type of connection this provider is supporting
Declaration
ConnectionType Type { get; }
Property Value
Type | Description |
---|---|
ConnectionType |
Methods
Create(UserInfo)
Creates a new instance of the IEntityUpdaterUI core interface for retrieving, querying and updating all data in the system
Declaration
Task<IEntityUpdaterUI> Create(UserInfo userInfo)
Parameters
Type | Name | Description |
---|---|---|
UserInfo | userInfo | The current logged in user requesting the interface |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEntityUpdaterUI> | A new instance of the IEntityUpdaterUI core interface for retrieving, querying and updating all data in the system |
GetAuthenticater()
Returns an implementation of the IAuthenticator to provide login services.
You do not need to use this directly, you can instead login from Login(String, String, String)
Declaration
IAuthenticator GetAuthenticater()
Returns
Type | Description |
---|---|
IAuthenticator | An implementation of the IAuthenticator to provide login services. |
OnUpdateServiceConnection(String)
Indicates we should use the specified connection url for connecting to a web service
This takes time to complete as the system verifies the webs service, and downloads the model of the webservice it is connecting to (as lemonedge services can have different models depending on the addins)
Declaration
Task OnUpdateServiceConnection(string connection)
Parameters
Type | Name | Description |
---|---|---|
System.String | connection | A valid url connection to a lemonedge web service |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |