public static ILifetimeScope CreateLifetimeScope(Autofac.ILifetimeScope scope)
        {
            var iocScope = new IocLifetimeScope(scope);

            CallContextUtility.SetData <ILifetimeScope>(iocScope);
            return(iocScope);
        }
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             CallContextUtility.ClearData <ILifetimeScope>();
             scope.Dispose();
         }
     }
     this.disposed = true;
 }