Table of Contents

Class RuntimeProxyInstanceModeBuilder

Namespace
Plugins.Saneject.Runtime.Bindings.RuntimeProxy
Assembly
Saneject.Runtime.dll

Builder for configuring the instance mode of a runtime proxy.

public class RuntimeProxyInstanceModeBuilder
Inheritance
object
RuntimeProxyInstanceModeBuilder

Constructors

RuntimeProxyInstanceModeBuilder(ComponentBinding)

Initializes a new instance of the RuntimeProxyInstanceModeBuilder class.

public RuntimeProxyInstanceModeBuilder(ComponentBinding binding)

Parameters

binding ComponentBinding

The component binding to configure.

Methods

AsSingleton()

Sets the proxy instance mode to singleton, which reuses one created Plugins.Saneject.Runtime.Bindings.Component instance, caches it in GlobalScope, and forces dontDestroyOnLoad to true.

public void AsSingleton()

AsTransient()

Sets the proxy instance mode to transient, creating a new instance for each resolution.

public void AsTransient()