{"action":"created","issue":{"url":"https://api.github.com/repos/phax/as2-lib/issues/8","labels_url":"https://api.github.com/repos/phax/as2-lib/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/phax/as2-lib/issues/8/comments","events_url":"https://api.github.com/repos/phax/as2-lib/issues/8/events","html_url":"https://github.com/phax/as2-lib/issues/8","id":105587442,"number":8,"title":"Do a \"reverse\" partnership lookup when receiving a message?","user":{"login":"jochenberger","id":370733,"avatar_url":"https://avatars.githubusercontent.com/u/370733?v=3","gravatar_id":"","url":"https://api.github.com/users/jochenberger","html_url":"https://github.com/jochenberger","followers_url":"https://api.github.com/users/jochenberger/followers","following_url":"https://api.github.com/users/jochenberger/following{/other_user}","gists_url":"https://api.github.com/users/jochenberger/gists{/gist_id}","starred_url":"https://api.github.com/users/jochenberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jochenberger/subscriptions","organizations_url":"https://api.github.com/users/jochenberger/orgs","repos_url":"https://api.github.com/users/jochenberger/repos","events_url":"https://api.github.com/users/jochenberger/events{/privacy}","received_events_url":"https://api.github.com/users/jochenberger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-09T12:36:42Z","updated_at":"2015-09-10T08:01:37Z","closed_at":null,"body":"This is a question rather than an actual issue.\r\nI have created a custom `IPartnershipFactory` that stores partnerships in a MongoDB collection. (I could contribute the code if you're interested).\r\nI have noticed that for a local station L and a remote station R, I need two partnerships, one with sender L and recipient R and one with the parameters exchanged.\r\nI have implemented `getPartnershipByID(IStringMap, IStringMap)` to use a reverse query and create the `Partnership` object in the \"wrong\" direction. I wonder if that should be done somewhere within the library code. because the library knows whether the message is incoming or outgoing."},"comment":{"url":"https://api.github.com/repos/phax/as2-lib/issues/comments/139156302","html_url":"https://github.com/phax/as2-lib/issues/8#issuecomment-139156302","issue_url":"https://api.github.com/repos/phax/as2-lib/issues/8","id":139156302,"user":{"login":"jochenberger","id":370733,"avatar_url":"https://avatars.githubusercontent.com/u/370733?v=3","gravatar_id":"","url":"https://api.github.com/users/jochenberger","html_url":"https://github.com/jochenberger","followers_url":"https://api.github.com/users/jochenberger/followers","following_url":"https://api.github.com/users/jochenberger/following{/other_user}","gists_url":"https://api.github.com/users/jochenberger/gists{/gist_id}","starred_url":"https://api.github.com/users/jochenberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jochenberger/subscriptions","organizations_url":"https://api.github.com/users/jochenberger/orgs","repos_url":"https://api.github.com/users/jochenberger/repos","events_url":"https://api.github.com/users/jochenberger/events{/privacy}","received_events_url":"https://api.github.com/users/jochenberger/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T08:01:37Z","updated_at":"2015-09-10T08:01:37Z","body":"Yes, that's what I assumed. Sorry, I'm quite new to AS2, and I'm not familiar with all the possible setups. Could you please give an example where that would not work? I wonder what the difference could be. I can imagine different setups for sending and receiving messages but not for sending a message and receiving a DN."}}