EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Class UnityFallbackServiceProvider

    Represents a service provider that first attempts to resolve services using the .NET Core's default dependency injection container, and if the service is not found, it falls back to the Unity container.

    Inheritance
    object
    UnityFallbackServiceProvider
    Implements
    IServiceProvider
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: PoeShared.Blazor.Prism
    Assembly: PoeShared.Blazor.dll
    Syntax
    public sealed class UnityFallbackServiceProvider : IServiceProvider
    Remarks

    The .NET Core's dependency injection container and Unity's container have different mechanisms for service registration and resolution. This service provider aims to bridge the gap between the two, allowing for a unified service resolution strategy that can work with both containers. However, it is important to be aware of the differences in lifetime management and other features between the two containers.

    Unity Container: - Supports named registrations. - Allows more complex lifetime management including external control. - Provides property injection.

    .NET Core DI Container: - Does not support named registrations out of the box. - Primarily supports three lifetimes - Singleton, Scoped, and Transient. - Focuses on constructor injection.

    It is crucial to handle these differences carefully, especially for services with specific lifetime requirements or advanced configuration.

    Constructors

    Name Description
    UnityFallbackServiceProvider(IServiceProvider, IUnityContainer)

    Initializes a new instance of the UnityFallbackServiceProvider class.

    Methods

    Name Description
    GetService(Type)

    Gets the service of the specified type from the .NET Core service provider or falls back to the Unity container if the service is not found.

    Extension Methods

    ReactiveObjectExtensions.Listen<TContext, TItem>(TContext, Expression<Func<TContext, IObservableList<TItem>>>)
    ReactiveObjectExtensions.Listen<TContext, TOut>(TContext, Expression<Func<TContext, TOut>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2, TOut3>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>, Expression<Func<TContext, TOut3>>)
    ReactiveObjectExtensions.Listen<TContext, TOut1, TOut2, TOut3, TOut4>(TContext, Expression<Func<TContext, TOut1>>, Expression<Func<TContext, TOut2>>, Expression<Func<TContext, TOut3>>, Expression<Func<TContext, TOut4>>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ISourceList<TCollection>)
    ObjectExtensions.AddTo<TItem, TCollection>(TItem, ICollection<TCollection>)
    ObjectExtensions.CloneJson<T>(T)
    ObjectExtensions.CopyPropertiesTo<TSource, TTarget>(TSource, TTarget)
    ObjectExtensions.DumpToTextRaw<T>(T)
    ObjectExtensions.DumpToText<T>(T)
    ObjectExtensions.Dump<T>(T)
    ObjectExtensions.EvalOrDefault<T, TValue>(T, Func<T, TValue>, TValue)
    ObjectExtensions.Eval<T, TValue>(T, Func<T, TValue>)
    ObjectExtensions.GetPropertyAccessor<TSource, TValue>(TSource, Expression<Func<TSource, TValue>>)
    ObjectExtensions.InsertTo<TItem, TCollection>(TItem, IList<TCollection>, int)
    ObjectExtensions.ToJson<T>(T)
    ObjectExtensions.ToStringSafe<T>(T)
    ObjectExtensions.TransferPropertiesTo<TSource, TTarget>(TSource, TTarget, params string[])
    XDocumentExtensions.AddTo<T>(T, XContainer)
    ObjectExtensions.GetPropertyAccessor<TValue>(object, string)
    ObjectReflectionExtensions.GetPropertyTypeOrDefault(object, string)
    ObjectReflectionExtensions.GetPropertyValue<T>(object, string)
    ObjectReflectionExtensions.SetPropertyValue<T>(object, string, T)
    © Xab3r. All rights reserved.