Class ProxyScope
Shall be one per proxy instance
public class ProxyScope : IAsyncDisposable
- Inheritance
-
ProxyScope
- Implements
- Inherited Members
Constructors
ProxyScope(Func<IOutOfProcessHost, ICaptureContext>)
public ProxyScope(Func<IOutOfProcessHost, ICaptureContext> captureContextBuilder)
Parameters
captureContextBuilder
Func<IOutOfProcessHost, ICaptureContext>
ProxyScope(Func<IOutOfProcessHost>, Func<IOutOfProcessHost, ICaptureContext>)
public ProxyScope(Func<IOutOfProcessHost> captureHostBuilder, Func<IOutOfProcessHost, ICaptureContext> captureContextBuilder)
Parameters
captureHostBuilder
Func<IOutOfProcessHost>captureContextBuilder
Func<IOutOfProcessHost, ICaptureContext>
Properties
CaptureContext
public ICaptureContext? CaptureContext { get; set; }
Property Value
Identifier
public Guid Identifier { get; }
Property Value
Methods
Dispose()
public void Dispose()
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
GetOrCreateHostedCaptureContext()
public Task<ICaptureContext> GetOrCreateHostedCaptureContext()
Returns
GetOrCreateHostedCaptureHost()
No thread safe : validate that there's no risk in thread safety
public Task<IOutOfProcessHost?> GetOrCreateHostedCaptureHost()