Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
smithc committed Apr 28, 2016
2 parents ba880db + b854a29 commit be4a42e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ public class MvcLifetimeScopeProvider : ILifetimeScopeProvider
{
public ILifetimeScope GetLifetimeScope()
{
return AutofacDependencyResolver.Current?.RequestLifetimeScope;
try
{
return AutofacDependencyResolver.Current?.RequestLifetimeScope;
}
catch
{
return null;
}
}
}
}
4 changes: 2 additions & 2 deletions Jabberwocky.Glass.Autofac.Mvc/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]

[assembly: InternalsVisibleTo("Jabberwocky.Glass.Autofac.Mvc.Tests")]
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@ public class WebApiLifetimeScopeProvider : ILifetimeScopeProvider
{
public ILifetimeScope GetLifetimeScope()
{
// If using the Autofac.WebApi integration package, this dependency should be of type 'AutofacWebApiDependencyResolver'
var resolver = GlobalConfiguration.Configuration.DependencyResolver as IDependencyScope;
try
{
// If using the Autofac.WebApi integration package, this dependency should be of type 'AutofacWebApiDependencyResolver'
var resolver = GlobalConfiguration.Configuration.DependencyResolver as IDependencyScope;

return resolver?.GetRequestLifetimeScope();
return resolver?.GetRequestLifetimeScope();
}
catch
{
return null;
}
}
}
}
4 changes: 2 additions & 2 deletions Jabberwocky.Glass.Autofac.WebApi/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]

0 comments on commit be4a42e

Please sign in to comment.