private static void SetContext(IBuilderContext context, InstanceResult instanceResult) { //context.Existing = UnityContainer.Configure<TransientPolicyBuildUpExtension>().BuildUp (context.OriginalBuildKey.Type, context.Existing, null, InterceptionMember); context.Existing = instanceResult.Instance; if (instanceResult.LifetimePolicy != null) { context.PersistentPolicies.Set(typeof(ILifetimePolicy), instanceResult.LifetimePolicy, context.BuildKey); } context.BuildComplete = true; }