Table of Contents

Class ObjectRegistryScope

Namespace
nadena.dev.ndmf

This class allows you to set a particular Object Registry instance as the current one to be used for static methods. This is primarily intended for unit testing.

public sealed class ObjectRegistryScope : IDisposable
Inheritance
ObjectRegistryScope
Implements
Inherited Members

Constructors

ObjectRegistryScope(IObjectRegistry)

public ObjectRegistryScope(IObjectRegistry registry)

Parameters

registry IObjectRegistry

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()