{"action":"created","issue":{"url":"https://api.github.com/repos/goldnarms/ApplabTodo/issues/26","labels_url":"https://api.github.com/repos/goldnarms/ApplabTodo/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/goldnarms/ApplabTodo/issues/26/comments","events_url":"https://api.github.com/repos/goldnarms/ApplabTodo/issues/26/events","html_url":"https://github.com/goldnarms/ApplabTodo/issues/26","id":107717848,"number":26,"title":"Implementer IConnectionResolver for hver platform","user":{"login":"goldnarms","id":1735208,"avatar_url":"https://avatars.githubusercontent.com/u/1735208?v=3","gravatar_id":"","url":"https://api.github.com/users/goldnarms","html_url":"https://github.com/goldnarms","followers_url":"https://api.github.com/users/goldnarms/followers","following_url":"https://api.github.com/users/goldnarms/following{/other_user}","gists_url":"https://api.github.com/users/goldnarms/gists{/gist_id}","starred_url":"https://api.github.com/users/goldnarms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldnarms/subscriptions","organizations_url":"https://api.github.com/users/goldnarms/orgs","repos_url":"https://api.github.com/users/goldnarms/repos","events_url":"https://api.github.com/users/goldnarms/events{/privacy}","received_events_url":"https://api.github.com/users/goldnarms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T13:43:44Z","updated_at":"2015-10-06T07:58:46Z","closed_at":null,"body":"iOS:\r\n\r\n    [assembly:Xamarin.Forms.Dependency(typeof(ApplabTodo.iOS.ConnectionResolver))]\r\n    namespace ApplabTodo.iOS\r\n    {\r\n\tpublic class ConnectionResolver : IConnectionResolver\r\n\t{\r\n\t\tpublic ConnectionResolver ()\r\n\t\t{\r\n\t\t}\r\n\r\n\t\tpublic SQLiteConnection ResolveConnection ()\r\n\t\t{\r\n\t\t\tvar path = Path.Combine (\r\n\t\t\t\tEnvironment.GetFolderPath (Environment.SpecialFolder.Personal),\r\n\t\t\t\t\"tasks.db\");\r\n\t\t\tvar connection = new SQLiteConnectionWithLock (new SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS(), \r\n\t\t\t\tnew SQLiteConnectionString(path, false));\r\n\t\t\treturn new SQLiteConnection (() => connection);\r\n\t\t}\r\n\t}\r\n    }\r\n\r\nAndroid:\r\n\r\n    [assembly:Xamarin.Forms.Dependency(typeof(ApplabTodo.Droid.ConnectionResolver))]\r\n    namespace ApplabTodo.Droid\r\n    {\r\n\tpublic class ConnectionResolver : IConnectionResolver\r\n\t{\r\n\t\tpublic ConnectionResolver ()\r\n\t\t{\r\n\t\t}\r\n\r\n\t\tpublic SQLite.Net.Async.SQLiteConnection ResolveConnection ()\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tvar path = Path.Combine (\r\n\t\t\t\t\tEnvironment.GetFolderPath (Environment.SpecialFolder.Personal),\r\n\t\t\t\t\t\"tasks.db\");\r\n\t\t\t\tvar connection = new SQLiteConnectionWithLock (new SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid(), \r\n\t\t\t\t\tnew SQLiteConnectionString(path, false)\r\n\t\t\t\t);\r\n\t\t\t\treturn new SQLiteConnection (() => connection);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n    }"},"comment":{"url":"https://api.github.com/repos/goldnarms/ApplabTodo/issues/comments/145775469","html_url":"https://github.com/goldnarms/ApplabTodo/issues/26#issuecomment-145775469","issue_url":"https://api.github.com/repos/goldnarms/ApplabTodo/issues/26","id":145775469,"user":{"login":"goldnarms","id":1735208,"avatar_url":"https://avatars.githubusercontent.com/u/1735208?v=3","gravatar_id":"","url":"https://api.github.com/users/goldnarms","html_url":"https://github.com/goldnarms","followers_url":"https://api.github.com/users/goldnarms/followers","following_url":"https://api.github.com/users/goldnarms/following{/other_user}","gists_url":"https://api.github.com/users/goldnarms/gists{/gist_id}","starred_url":"https://api.github.com/users/goldnarms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldnarms/subscriptions","organizations_url":"https://api.github.com/users/goldnarms/orgs","repos_url":"https://api.github.com/users/goldnarms/repos","events_url":"https://api.github.com/users/goldnarms/events{/privacy}","received_events_url":"https://api.github.com/users/goldnarms/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T07:58:46Z","updated_at":"2015-10-06T07:58:46Z","body":"Opprett en ny mappe for hvert prosjekt, Services som dere legger filene under."}}