{"action":"closed","issue":{"url":"https://api.github.com/repos/structuremap/structuremap/issues/364","repository_url":"https://api.github.com/repos/structuremap/structuremap","labels_url":"https://api.github.com/repos/structuremap/structuremap/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/structuremap/structuremap/issues/364/comments","events_url":"https://api.github.com/repos/structuremap/structuremap/issues/364/events","html_url":"https://github.com/structuremap/structuremap/issues/364","id":105459236,"number":364,"title":"Interception with dynamic proxy","user":{"login":"DixonDs","id":1036478,"avatar_url":"https://avatars.githubusercontent.com/u/1036478?v=3","gravatar_id":"","url":"https://api.github.com/users/DixonDs","html_url":"https://github.com/DixonDs","followers_url":"https://api.github.com/users/DixonDs/followers","following_url":"https://api.github.com/users/DixonDs/following{/other_user}","gists_url":"https://api.github.com/users/DixonDs/gists{/gist_id}","starred_url":"https://api.github.com/users/DixonDs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DixonDs/subscriptions","organizations_url":"https://api.github.com/users/DixonDs/orgs","repos_url":"https://api.github.com/users/DixonDs/repos","events_url":"https://api.github.com/users/DixonDs/events{/privacy}","received_events_url":"https://api.github.com/users/DixonDs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-09-08T20:07:12Z","updated_at":"2016-07-31T15:07:03Z","closed_at":"2016-07-31T15:07:03Z","body":"From what I understand, it is not possible to make interception with using dynamic proxies. The closest thing is `DecoratorInterceptor` but you have to provide a concrete decorator implementation each time for each type you decorate. What I like to have is a dynamic proxy interceptor where I could define some common logic which doesn't depend on the specific class. \r\n\r\nCurrently, I achieve this by using the combination  of `FuncInterceptor` from `StructureMap` and `Intercept.ThroughProxy` from `Unity.Interception`. Ideally, I would like to use `StructureMap` only.\r\n\r\nI could start working on adding this feature to `StructureMap` but I would like to gather some input first whether this feature is desirable at all and if yes, in what direction I should go - implement dynamic proxy generation from scratch or use something like `Castle.Core`"}}
{"actor":{"display_login":"jeremydmiller"}}