{"action":"closed","issue":{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/198","repository_url":"https://api.github.com/repos/simpleinjector/SimpleInjector","labels_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/198/comments","events_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/198/events","html_url":"https://github.com/simpleinjector/SimpleInjector/issues/198","id":138182405,"number":198,"title":"About Lifestyle.Transient","user":{"login":"zhshqzyc","id":7240266,"avatar_url":"https://avatars.githubusercontent.com/u/7240266?v=3","gravatar_id":"","url":"https://api.github.com/users/zhshqzyc","html_url":"https://github.com/zhshqzyc","followers_url":"https://api.github.com/users/zhshqzyc/followers","following_url":"https://api.github.com/users/zhshqzyc/following{/other_user}","gists_url":"https://api.github.com/users/zhshqzyc/gists{/gist_id}","starred_url":"https://api.github.com/users/zhshqzyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhshqzyc/subscriptions","organizations_url":"https://api.github.com/users/zhshqzyc/orgs","repos_url":"https://api.github.com/users/zhshqzyc/repos","events_url":"https://api.github.com/users/zhshqzyc/events{/privacy}","received_events_url":"https://api.github.com/users/zhshqzyc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-03T13:51:37Z","updated_at":"2016-03-03T19:01:36Z","closed_at":"2016-03-03T19:01:36Z","body":"I have a telephony application. During the operation, many lines run simultaneously. Each line uses its own channel resource or voice resource. \r\n\r\n```csharp\r\npublic class VoiceElementsLine : ILine\r\n{\r\n    public IVoiceResource IncomingChannelResource { get; set; }\r\n    public VoiceElementsLine(IVoiceResource channelElementsResource = null)\r\n    {\r\n        IncomingChannelResource = channelElementsResource;\r\n    }\r\n```\r\n\r\nAnd\r\n\r\n```csharp\r\npublic class VoiceElementsResource : IVoiceResource\r\n{\r\n    private readonly ChannelResource _channelResource;\r\n    private readonly VoiceResource _voiceResource;\r\n\r\n    public VoiceElementsResource()\r\n    {\r\n    }\r\n\r\n    public VoiceElementsResource(ChannelResource channelResource)\r\n    {\r\n        _channelResource = channelResource;\r\n        _voiceResource = _channelResource.VoiceResource;\r\n    }\r\n```\r\n\r\nI register it as\r\n\r\n```csharp\r\nContainer.Register<ILine, VoiceElementsLine>();\r\n\r\nContainer.Register<IVoiceResource>(() =>\r\n    new VoiceElementsResource()\r\n);\r\n```\r\n\r\nMy question is can I use Lifestyle.Transient rather than new up VoiceElementsResource?\r\n\r\nSo the code will be:\r\n```csharp\r\nContainer.Register<IVoiceResource,VoiceElementsResource>(Lifestyle.Transient);\r\n```\r\n\r\nIs there any difference?"}}