IProxyFactory Interface

A factory for runtime creation of proxy objects.

Namespace
Microsoft.Extensions.DiagnosticAdapter.Infrastructure
Assemblies
  • Microsoft.Extensions.DiagnosticAdapter

Syntax

public interface IProxyFactory
interface Microsoft.Extensions.DiagnosticAdapter.Infrastructure.IProxyFactory

Methods

CreateProxy<TProxy>(System.Object)

Creates a proxy object that is assignable to type <em>TProxy</em>

Arguments:obj (System.Object) – The object to wrap in a proxy.
Return type:TProxy
Returns:A proxy object, or <em>obj</em> if a proxy is not needed.
TProxy CreateProxy<TProxy>(object obj)