{"action":"created","issue":{"url":"https://api.github.com/repos/strangeioc/strangeioc/issues/98","labels_url":"https://api.github.com/repos/strangeioc/strangeioc/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/strangeioc/strangeioc/issues/98/comments","events_url":"https://api.github.com/repos/strangeioc/strangeioc/issues/98/events","html_url":"https://github.com/strangeioc/strangeioc/issues/98","id":31607197,"number":98,"title":"new httpConnection() in a singleton service!?","user":{"login":"sorob","id":1505131,"avatar_url":"https://avatars.githubusercontent.com/u/1505131?v=3","gravatar_id":"","url":"https://api.github.com/users/sorob","html_url":"https://github.com/sorob","followers_url":"https://api.github.com/users/sorob/followers","following_url":"https://api.github.com/users/sorob/following{/other_user}","gists_url":"https://api.github.com/users/sorob/gists{/gist_id}","starred_url":"https://api.github.com/users/sorob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorob/subscriptions","organizations_url":"https://api.github.com/users/sorob/orgs","repos_url":"https://api.github.com/users/sorob/repos","events_url":"https://api.github.com/users/sorob/events{/privacy}","received_events_url":"https://api.github.com/users/sorob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-04-16T02:08:58Z","updated_at":"2015-03-15T17:00:26Z","closed_at":"2015-03-15T17:00:26Z","body":"Hi,\r\n\r\nI'm having a hard time making this to work : \r\n1- I bind a service as a singleton ! \r\n            injectionBinder.Bind<ISocketService>().To<SocketService>().ToSingleton();\r\n2- now I need to setup a connection to request something from web :+1: \r\n\r\npublic SocketService ()\r\n\t\t{\r\n            client = new Client(url);\r\n}\r\n\r\n3 - I get an error : \r\nArgumentException: failed to convert parameters\r\nSystem.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:192)\r\n\r\n** I think this is caused by IoC trying to instantiate a non-static class inside a static (singleton) class ! \r\n\r\nhow do we get around this?  "},"comment":{"url":"https://api.github.com/repos/strangeioc/strangeioc/issues/comments/81156689","html_url":"https://github.com/strangeioc/strangeioc/issues/98#issuecomment-81156689","issue_url":"https://api.github.com/repos/strangeioc/strangeioc/issues/98","id":81156689,"user":{"login":"fogAndWhisky","id":104370,"avatar_url":"https://avatars.githubusercontent.com/u/104370?v=3","gravatar_id":"","url":"https://api.github.com/users/fogAndWhisky","html_url":"https://github.com/fogAndWhisky","followers_url":"https://api.github.com/users/fogAndWhisky/followers","following_url":"https://api.github.com/users/fogAndWhisky/following{/other_user}","gists_url":"https://api.github.com/users/fogAndWhisky/gists{/gist_id}","starred_url":"https://api.github.com/users/fogAndWhisky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fogAndWhisky/subscriptions","organizations_url":"https://api.github.com/users/fogAndWhisky/orgs","repos_url":"https://api.github.com/users/fogAndWhisky/repos","events_url":"https://api.github.com/users/fogAndWhisky/events{/privacy}","received_events_url":"https://api.github.com/users/fogAndWhisky/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T17:00:26Z","updated_at":"2015-03-15T17:00:26Z","body":"Old. Closing. Feel free to re-open if there's more to discuss."}}