Timeline.GetUserTimeline(userid) has stopped working in the 9.3.0 release:
An unhandled exception of type 'Autofac.Core.Registration.ComponentNotRegisteredException' occurred in Autofac.dll
Additional information: The requested service 'Tweetinvi.Core.Interfaces.Models.IUserIdentifier' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
```
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at Tweetinvi.Injectinvi.AutofacThreadContainer.Resolve[T](IConstructorNamedParameter[] parameters) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi\Injectinvi\AutofacThreadContainer.cs:line 39
at Tweetinvi.Injectinvi.AutofacContainer.Resolve[T](IConstructorNamedParameter[] parameters) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi\Injectinvi\AutofacContainer.cs:line 120
at Tweetinvi.Core.Injectinvi.Factory`1.Create(IConstructorNamedParameter[] parameters) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi.Core\Injectinvi\IFactory.cs:line 20
at Tweetinvi.Factories.User.UserFactory.GenerateUserIdentifierFromId(Int64 userId) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi.Factories\User\UserFactory.cs:line 104
at Tweetinvi.Controllers.Timeline.TimelineController.GetUserTimeline(Int64 userId, Int32 maximumNumberOfTweets) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi.Controllers\Timeline\TimelineController.cs:line 68
at Tweetinvi.Timeline.GetUserTimeline(Int64 userId, Int32 maximumTweets) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi\Timeline.cs:line 108
at Examplinvi.Program.Main() in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Examplinvi\Program.cs:line 40
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
```
Comments:
An unhandled exception of type 'Autofac.Core.Registration.ComponentNotRegisteredException' occurred in Autofac.dll
Additional information: The requested service 'Tweetinvi.Core.Interfaces.Models.IUserIdentifier' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
```
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at Tweetinvi.Injectinvi.AutofacThreadContainer.Resolve[T](IConstructorNamedParameter[] parameters) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi\Injectinvi\AutofacThreadContainer.cs:line 39
at Tweetinvi.Injectinvi.AutofacContainer.Resolve[T](IConstructorNamedParameter[] parameters) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi\Injectinvi\AutofacContainer.cs:line 120
at Tweetinvi.Core.Injectinvi.Factory`1.Create(IConstructorNamedParameter[] parameters) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi.Core\Injectinvi\IFactory.cs:line 20
at Tweetinvi.Factories.User.UserFactory.GenerateUserIdentifierFromId(Int64 userId) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi.Factories\User\UserFactory.cs:line 104
at Tweetinvi.Controllers.Timeline.TimelineController.GetUserTimeline(Int64 userId, Int32 maximumNumberOfTweets) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi.Controllers\Timeline\TimelineController.cs:line 68
at Tweetinvi.Timeline.GetUserTimeline(Int64 userId, Int32 maximumTweets) in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi\Timeline.cs:line 108
at Examplinvi.Program.Main() in c:\Users\anton\Downloads\Tweetinvi 0.9.3.0 - Source Code\Tweetinvi 0.9.3.0 - Source Code\Examplinvi\Program.cs:line 40
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
```
Comments:
This is now fixed in the Source Code version I will publish 0.9.3.1 very soon, there is another issue that I want to investigate before.
Linvi