IServiceProviderDictionary Interface

Summary

IServiceProviderDictionary Implements the System.Collections.Generic.IDictionary`2 Implements the System.IServiceProvider
Assembly
Rocket.Surgery.Conventions.Abstractions.dll
Namespace
Rocket.Surgery.Conventions
Interfaces
  • IDictionary<object, object>
  • ICollection<KeyValuePair<object, object>>
  • IEnumerable<KeyValuePair<object, object>>
  • IEnumerable
  • IServiceProvider
Implementing Types
graph BT Type-.->Interface0["IDictionary<object, object>"] Type-.->Interface1["ICollection<KeyValuePair<object, object>>"] Type-.->Interface2["IEnumerable<KeyValuePair<object, object>>"] Type-.->Interface3["IEnumerable"] Type-.->Interface4["IServiceProvider"] Type["IServiceProviderDictionary"] class Type type-node Implementing0["ServiceProviderDictionary"]-.->Type click Implementing0 "/api/Rocket.Surgery.Conventions/ServiceProviderDictionary"

Syntax

public interface IServiceProviderDictionary : IDictionary<object, object>, 
    ICollection<KeyValuePair<object, object>>, IEnumerable<KeyValuePair<object, object>>, 
    IEnumerable, IServiceProvider

Extension Methods

Name Value Summary
Get<T>(string) T
Get a value by key from the context
Get<T>() T
Get a value by type from the context
GetOrAdd<T>(Func<T>) T
Get a value by key from the context
GetOrAdd<T>(string, Func<T>) T
Get a value by key from the context
IsUnitTestHost() bool
Check if this is a test host (to allow conventions to behave differently during unit tests)
Set<T>(string, T) void
Get a value by type from the context
Set<T>(T) void
Get a value by type from the context
SetBackingValue<IServiceProviderDictionary, TV>(Expression<Func<IServiceProviderDictionary, TV>>, TV) T
Sets the backing value.
With<IServiceProviderDictionary, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.

See Also

  • System.Collections.Generic.IDictionary`2
  • System.IServiceProvider