# Microsoft.Orleans.TestingHost

10.0.0 | net10.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.TestingHost)

## Orleans.Hosting

- [FaultInjectionStorageServiceCollectionExtensions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.hosting.faultinjectionstorageservicecollectionextensions/) - Extension methods for `Microsoft.Extensions.DependencyInjection.IServiceCollection`.

## Orleans.TestingHost

- [ConnectionTransportType](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.connectiontransporttype/) - Describe a transport method
- [FaultInjectionGrainStorage](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.faultinjectiongrainstorage/) - Fault injection decorator for storage providers. This allows users to inject storage exceptions to test error handling scenarios.
- [FaultInjectionGrainStorageFactory](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.faultinjectiongrainstoragefactory/) - Factory to create FaultInjectionGrainStorage
- [FaultInjectionGrainStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.faultinjectiongrainstorageoptions/) - Options for fault injection grain storage
- [IClientBuilderConfigurator](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.iclientbuilderconfigurator/) - Allows implementations to configure the client builder when starting up each silo in the test cluster.
- [IHostConfigurator](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.ihostconfigurator/) - Allows implementations to configure the host builder when starting up each silo in the test cluster.
- [InProcessSiloHandle](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesssilohandle/) - Represents a handle to a silo that is deployed in the same process and AppDomain.
- [InProcessTestCluster](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/) - A host class for local testing with Orleans using in-process silos.
- [InProcessTestClusterBuilder](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/) - Configuration builder for starting a [InProcessTestCluster](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/).
- [InProcessTestClusterOptions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusteroptions/) - Configuration options for test clusters.
- [InProcessTestSiloSpecificOptions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestsilospecificoptions/) - Configuration overrides for individual silos.
- [ISiloConfigurator](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.isiloconfigurator/) - Allows implementations to configure the silo builder when starting up each silo in the test cluster.
- [IStorageFaultGrain](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.istoragefaultgrain/) - Grain that tracks storage exceptions to be injected.
- [ITestClusterPortAllocator](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.itestclusterportallocator/) - Functionality for finding unused ports.
- [RandomlyInjectedInconsistentStateException](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.randomlyinjectedinconsistentstateexception/) - Represents a randomly injected [InconsistentStateException](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.storage.inconsistentstateexception/).
- [RandomlyInjectedStorageException](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.randomlyinjectedstorageexception/) - Represents a randomly injected storage exception.
- [SiloBuilderExtensions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silobuilderextensions/) - Extension methods for [ISiloBuilder](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.hosting.isilobuilder/).
- [SiloHandle](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.silohandle/) - Represents a handle to a silo that is remotely deployed
- [StandaloneSiloHandle](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.standalonesilohandle/) - A silo handle and factory which spawns a separate process for each silo.
- [StandaloneSiloHost](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.standalonesilohost/) - The entry point for standalone silo processes. See [StandaloneSiloHandle](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.standalonesilohandle/).
- [StorageFaultGrain](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.storagefaultgrain/) - Grain that tracks storage exceptions to be injected.
- [TestCluster](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/) - A host class for local testing with Orleans using in-process silos. Runs a Primary and optionally secondary silos in separate app domains, and client in the main app domain. Additional silos can also be started in-process on demand if required for particular test cases.
- [TestClusterBuilder](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testclusterbuilder/) - Configuration builder for starting a [TestCluster](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/).
- [TestClusterExtensions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testclusterextensions/) - Extension methods for test clusters.
- [TestClusterHostFactory](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testclusterhostfactory/) - Utility for creating silos given a name and collection of configuration sources.
- [TestClusterOptions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testclusteroptions/) - Configuration options for test clusters.
- [TestClusterPortAllocator](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testclusterportallocator/) - Default [ITestClusterPortAllocator](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.itestclusterportallocator/) implementation, which tries to allocate unused ports.
- [TestSiloSpecificOptions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testsilospecificoptions/) - Configuration overrides for individual silos.
- [TimeProviderTestingExtensions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.timeprovidertestingextensions/) - Test helpers for overriding the per-area `System.TimeProvider` instances resolved via keyed dependency injection. See [TimeProviderNames](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.timeprovidernames/).

## Orleans.TestingHost.Diagnostics

- [DiagnosticEvent](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/) - Represents a captured diagnostic event with its name and payload.
- [DiagnosticEventCollector](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticeventcollector/) - A test utility for collecting and waiting on diagnostic events. Subscribes to `System.Diagnostics.DiagnosticListener.AllListeners` and captures events from listeners matching specified patterns.

## Orleans.TestingHost.Logging

- [FileLogger](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.filelogger/) - File logger, which logs messages to a file.
- [FileLoggerProvider](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.fileloggerprovider/) - `Microsoft.Extensions.Logging.ILoggerProvider` which outputs to a log file.
- [FileLoggerProviderExtensions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.fileloggerproviderextensions/) - Extension methods to configure ILoggingBuilder with FileLoggerProvider
- [FileLoggingOutput](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.fileloggingoutput/) - The log output which all [FileLogger](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.filelogger/) share to log messages to
- [InMemoryLogBuffer](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.inmemorylogbuffer/) - The in-memory log buffer which all [InMemoryLogger](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.inmemorylogger/) instances share. Useful for simulation testing where logs need to be captured and inspected.
- [InMemoryLogger](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.inmemorylogger/) - A logger that writes to an in-memory buffer via the InMemoryLogBuffer.
- [InMemoryLoggerProvider](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.inmemoryloggerprovider/) - A logger provider that buffers log messages in-memory for later retrieval. Useful for tests where logs need to be attached to test results conditionally.
- [LogEntry](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.logging.logentry/) - Represents a single log entry with its associated metadata.

## Orleans.TestingHost.UnixSocketTransport

- [UnixSocketConnectionExtensions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.unixsockettransport.unixsocketconnectionextensions/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [UnixSocketConnectionOptions](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.unixsockettransport.unixsocketconnectionoptions/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Orleans.TestingHost.Utils

- [AsyncResultHandle](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.asyncresulthandle/) - This class is for internal testing use only.
- [StorageEmulator](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.storageemulator/) - A wrapper on Azure Storage Emulator.
- [TestingUtils](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.utils.testingutils/) - Collection of test utilities

## OrleansCodeGen.Orleans.TestingHost

- [Codec_Invokable_IStorageFaultGrain_GrainReference_1150D526](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.codec-invokable-istoragefaultgrain-grainreference-1150d526/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Codec_Invokable_IStorageFaultGrain_GrainReference_1A607A31](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.codec-invokable-istoragefaultgrain-grainreference-1a607a31/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Codec_Invokable_IStorageFaultGrain_GrainReference_5D91E1AF](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.codec-invokable-istoragefaultgrain-grainreference-5d91e1af/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Codec_Invokable_IStorageFaultGrain_GrainReference_B9852E6E](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.codec-invokable-istoragefaultgrain-grainreference-b9852e6e/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Codec_Invokable_IStorageFaultGrain_GrainReference_C94BA77C](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.codec-invokable-istoragefaultgrain-grainreference-c94ba77c/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Codec_Invokable_IStorageFaultGrain_GrainReference_E8594820](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.codec-invokable-istoragefaultgrain-grainreference-e8594820/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Codec_RandomlyInjectedInconsistentStateException](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.codec-randomlyinjectedinconsistentstateexception/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Codec_RandomlyInjectedStorageException](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.codec-randomlyinjectedstorageexception/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Copier_Invokable_IStorageFaultGrain_GrainReference_1150D526](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.copier-invokable-istoragefaultgrain-grainreference-1150d526/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Copier_Invokable_IStorageFaultGrain_GrainReference_1A607A31](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.copier-invokable-istoragefaultgrain-grainreference-1a607a31/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Copier_Invokable_IStorageFaultGrain_GrainReference_5D91E1AF](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.copier-invokable-istoragefaultgrain-grainreference-5d91e1af/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Copier_Invokable_IStorageFaultGrain_GrainReference_B9852E6E](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.copier-invokable-istoragefaultgrain-grainreference-b9852e6e/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Copier_Invokable_IStorageFaultGrain_GrainReference_C94BA77C](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.copier-invokable-istoragefaultgrain-grainreference-c94ba77c/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Copier_Invokable_IStorageFaultGrain_GrainReference_E8594820](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.copier-invokable-istoragefaultgrain-grainreference-e8594820/) - Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
- [Copier_RandomlyInjectedInconsistentStateException](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.copier-randomlyinjectedinconsistentstateexception/) - Default copier implementation for (rarely copied) exception classes
- [Copier_RandomlyInjectedStorageException](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.copier-randomlyinjectedstorageexception/) - Default copier implementation for (rarely copied) exception classes
- [Invokable_IStorageFaultGrain_GrainReference_1150D526](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/) - Base class for requests for methods which return `System.Threading.Tasks.ValueTask`.
- [Invokable_IStorageFaultGrain_GrainReference_1A607A31](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/) - Base class for requests for methods which return `System.Threading.Tasks.ValueTask`.
- [Invokable_IStorageFaultGrain_GrainReference_5D91E1AF](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-5d91e1af/) - Base class for requests for methods which return `System.Threading.Tasks.ValueTask`.
- [Invokable_IStorageFaultGrain_GrainReference_B9852E6E](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-b9852e6e/) - Base class for requests for methods which return `System.Threading.Tasks.ValueTask`.
- [Invokable_IStorageFaultGrain_GrainReference_C94BA77C](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/) - Base class for requests for methods which return `System.Threading.Tasks.ValueTask`.
- [Invokable_IStorageFaultGrain_GrainReference_E8594820](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-e8594820/) - Base class for requests for methods which return `System.Threading.Tasks.ValueTask`.
