This is what I end up with (taken from http://www.sggu.com/smf/index.php?topic=9139.0):
[code]IContactService contactService = container.Resolve<IEnterpriseServiceProvider>().Resolve<Genesyslab.Enterprise.Services.IContactService>("contactService");
Core.SDK.Protocol.IChannelManager channelManager = container.Resolve<Core.SDK.Protocol.IChannelManager>();
IClientChannel channel = channelManager.Register(container.Resolve<Genesyslab.Desktop.Modules.Core.SDK.Contact.IContactService>().UCSApp, "My@ContactService");
AttributeList attributeList = new AttributeList();
if (channel != null && channel.State == ChannelState.Opened)
{
contactService.GetContact(channel, contactID, attributeList);
}[/code]
But I got time out from request:
[code]ESDK: 18-07-15 17:31:49.978 [45] DEBUG ESDK - Found constructor with 2 parameters
ESDK: 18-07-15 17:31:49.980 [45] DEBUG ESDK - Parameter [Type] System.String [Position] 0
ESDK: 18-07-15 17:31:49.982 [45] DEBUG ESDK - Parameter [Type] System.Boolean [Position] 1
ESDK: 18-07-15 17:31:49.983 [45] DEBUG ESDK - Media object getContact created
ESDK: 18-07-15 17:31:50.021 [45] DEBUG ESDK - Sending request [Id] 24 Msg [Name] RequestGetAttributes Channel [Name] UCS [Uri] tcp://192.X.X.XXX:XXXX/
ESDK: 18-07-15 17:31:50.023 [45] DEBUG ESDK - [Tx::RequestManager] 1 pending request
ESDK: 18-07-15 17:31:50.024 [ 1] DEBUG ESDK - Proxy [BeginInvoke] Thread [Id] 1 Storing Request [Name] ? [ReqId] 24
ESDK: 18-07-15 17:31:50.026 [ 1] DEBUG ESDK - Proxy [EndInvoke] Thread [Id] 1 Waiting for [ReqId] 24
ESDK: 18-07-15 17:32:00.025 [ 1] WARN ESDK - Proxy [EndInvoke] Timeout on internal [ReqId] 24(?) Submitted [ReqId] -1 after (9997,8729 ms)
{Id=XXXXX}
Attributes: {Genesyslab.Enterprise.Model.Contact.ContactAttributeList}
ContactId: "XXXXX"
EmailAddress: null
FirstName: null
FullName: null
Genesyslab.Enterprise.Model.Contact.IContact.Attributes: {Genesyslab.Enterprise.Model.Contact.ContactAttributeList}
Interactions: null
LastName: null
PhoneNumber: null
Title: null
UEID: null
attributes: {Genesyslab.Enterprise.Model.Contact.ContactAttributeList}
interactions: null[/code]
Any help would be appreciated