Class Proxy
- Namespace
- Fluxzy
- Assembly
- Fluxzy.Core.dll
A proxy capture instance that can be started and disposed.
public class Proxy : IAsyncDisposable
- Inheritance
-
Proxy
- Implements
- Inherited Members
Constructors
Proxy(FluxzySetting, ICertificateProvider, CertificateAuthorityManager, ITcpConnectionProvider?, IUserAgentInfoProvider?, FromIndexIdProvider?, CancellationTokenSource?)
Create a new instance with specific providers. If a provider is not provided the default will be used.
public Proxy(FluxzySetting startupSetting, ICertificateProvider certificateProvider, CertificateAuthorityManager certificateAuthorityManager, ITcpConnectionProvider? tcpConnectionProvider = null, IUserAgentInfoProvider? userAgentProvider = null, FromIndexIdProvider? idProvider = null, CancellationTokenSource? externalCancellationSource = null)
Parameters
startupSetting
FluxzySettingThe startup Setting
certificateProvider
ICertificateProviderA certificate provider
certificateAuthorityManager
CertificateAuthorityManagerA certificate authority manager
tcpConnectionProvider
ITcpConnectionProviderA tcp connection Provider
userAgentProvider
IUserAgentInfoProviderAn user Agent provider
idProvider
FromIndexIdProviderAn id provider
externalCancellationSource
CancellationTokenSourceAn external cancellation token
Exceptions
Proxy(FluxzySetting, ITcpConnectionProvider?)
Create a new instance of Proxy with the provided setting. An InMemoryCertificateCache will be used as the certificate cache.
public Proxy(FluxzySetting startupSetting, ITcpConnectionProvider? tcpConnectionProvider = null)
Parameters
startupSetting
FluxzySettingThe startup Setting
tcpConnectionProvider
ITcpConnectionProviderThe tcp connection provider, if null the default is used
Properties
SessionIdentifier
Get the unique identifier of this proxy instance.
public string SessionIdentifier { get; }
Property Value
StartupSetting
Get the setting that was used to start this proxy. Altering this setting will not affect the proxy.
public FluxzySetting StartupSetting { get; }
Property Value
Methods
DisposeAsync()
Release all resources used by this proxy.
public ValueTask DisposeAsync()
Returns
Run()
Start the proxy and return the end points that the proxy is listening to.
public IReadOnlyCollection<IPEndPoint> Run()
Returns
- IReadOnlyCollection<IPEndPoint>
Returns an exhaustive list of endpoints that the proxy is listen to