CosmosClientBuilder.WithFaultInjection(IFaultInjector) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables SDK to inject fault. Used for testing applications.
public Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder WithFaultInjection(Microsoft.Azure.Cosmos.FaultInjection.IFaultInjector faultInjector);
member this.WithFaultInjection : Microsoft.Azure.Cosmos.FaultInjection.IFaultInjector -> Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder
Public Function WithFaultInjection (faultInjector As IFaultInjector) As CosmosClientBuilder
Parameters
- faultInjector
- IFaultInjector
Returns
>The CosmosClientBuilder object