API Support Forum
OEC API > API Support > cannot connect
Author Topic: cannot connect
(2 messages, Page 1 of 1)
Moderators: VPfau
APetr890
Posts: 2
Joined: Nov 07, 2011


Posted: Nov 08, 2011 @ 05:13 AM             Msg. 1 of 2
When I execute code
OEC.API.OECClient x = new OEC.API.OECClient();
x.Connect("api.openecry.com", 9200, "login", "pass", true);
x.OnLoginComplete += () => { return; };
x.OnDisconnected += (_) => { return; };
x.OnLoginFailed += (_) => { return; };
Immidatly raised OnDisconnected-event and return 'true'

But all is working in OEC_API_Example.
What's problem?



Andy Petr
Edited by APetr890 on Nov 8, 2011 at 07:26:14
Edited by APetr890 on Nov 8, 2011 at 07:26:47
APetr890
Posts: 2
Joined: Nov 07, 2011


Posted: Nov 08, 2011 @ 07:59 AM             Msg. 2 of 2
fixed problem: added ProtoSharp.Core.dll in project

Andy Petr