<PackageReference Include="Castle.Core" Version="4.2.1" />

IChangeProxyTarget

public interface IChangeProxyTarget
Exposes means to change target objects of proxies and invocations.
using System; namespace Castle.DynamicProxy { public interface IChangeProxyTarget { void ChangeInvocationTarget(object target); [Obsolete("Use ((IProxyTargetAccessor)invocation.Proxy).DynProxySetTarget(target) instead.")] void ChangeProxyTarget(object target); } }