{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1060","labels_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1060/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1060/comments","events_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1060/events","html_url":"https://github.com/libgit2/libgit2sharp/issues/1060","id":82478101,"number":1060,"title":"Weird calling conventions.","user":{"login":"rdebath","id":5853223,"avatar_url":"https://avatars.githubusercontent.com/u/5853223?v=3","gravatar_id":"","url":"https://api.github.com/users/rdebath","html_url":"https://github.com/rdebath","followers_url":"https://api.github.com/users/rdebath/followers","following_url":"https://api.github.com/users/rdebath/following{/other_user}","gists_url":"https://api.github.com/users/rdebath/gists{/gist_id}","starred_url":"https://api.github.com/users/rdebath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdebath/subscriptions","organizations_url":"https://api.github.com/users/rdebath/orgs","repos_url":"https://api.github.com/users/rdebath/repos","events_url":"https://api.github.com/users/rdebath/events{/privacy}","received_events_url":"https://api.github.com/users/rdebath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-29T15:42:54Z","updated_at":"2015-05-29T22:40:23Z","closed_at":null,"body":"I'm attempting to call `Repository.Network.Push` through DotNET interop. I've looked at the [example](https://github.com/libgit2/libgit2sharp/blob/vNext/LibGit2Sharp.Tests/RemoteFixture.cs) and for the most part it seems reasonable but I can't assign a `LibGit2Sharp.UsernamePasswordCredentials` object to the `Credentials` property of the `LibGit2Sharp.PushOptions` object, it doesn't exist. \r\n\r\nThere is a `CredentialsProvider` property but all it seems to do is throw a type error.\r\n\r\nI assume you're using some feature of the `C#` compiler that's not strictly DotNET.\r\n\r\nCan you give me some indication of the code that's actually being run here ?\r\n\r\nOtherwise I suspect I'll end up creating a wrapper for your wrapper.\r\n\r\nBTW: I've had a similar issue with the `Repository.ObjectDatabase.CreateCommit` method where the `parents` and `commentChar` arguments are weird types (Generic?); but I was able to work around that issue by using `System.Reflection.MethodInfo.Invoke` to wrap it on the fly."},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/comments/106952424","html_url":"https://github.com/libgit2/libgit2sharp/issues/1060#issuecomment-106952424","issue_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1060","id":106952424,"user":{"login":"whoisj","id":11578325,"avatar_url":"https://avatars.githubusercontent.com/u/11578325?v=3","gravatar_id":"","url":"https://api.github.com/users/whoisj","html_url":"https://github.com/whoisj","followers_url":"https://api.github.com/users/whoisj/followers","following_url":"https://api.github.com/users/whoisj/following{/other_user}","gists_url":"https://api.github.com/users/whoisj/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisj/subscriptions","organizations_url":"https://api.github.com/users/whoisj/orgs","repos_url":"https://api.github.com/users/whoisj/repos","events_url":"https://api.github.com/users/whoisj/events{/privacy}","received_events_url":"https://api.github.com/users/whoisj/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T22:40:23Z","updated_at":"2015-05-29T22:40:23Z","body":"I'm not sure I'd say \"Microsoft are hating COM nowadays\". The entire C++/CX and WinRT platforms are built on top of COM (the `^` operator means COM). They seem fairly integral to the way Microsoft sees its future."}}