Own.Core/bin/Debug/Unity.Mvc.xml

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0"?>
<doc>
    <assembly>
        <name>Unity.Mvc</name>
    </assembly>
    <members>
        <member name="T:Unity.AspNet.Mvc.PerRequestLifetimeManager">
            <summary>
            A <see cref="T:Unity.Lifetime.LifetimeManager"/> that holds onto the instance given to it during
            the lifetime of a single HTTP request.
            This lifetime manager enables you to create instances of registered types that behave like
            singletons within the scope of an HTTP request.
            See remarks for important usage information.
            </summary>
            <remarks>
            <para>
            Although the <see cref="T:Unity.AspNet.Mvc.PerRequestLifetimeManager"/> lifetime manager works correctly and can help
            in working with stateful or thread-unsafe dependencies within the scope of an HTTP request, it is
            generally not a good idea to use it when it can be avoided, as it can often lead to bad practices or
            hard to find bugs in the end-user's application code when used incorrectly. 
            It is recommended that the dependencies you register are stateless and if there is a need to share
            common state between several objects during the lifetime of an HTTP request, then you can
            have a stateless service that explicitly stores and retrieves this state using the
            <see cref="P:System.Web.HttpContext.Items"/> collection of the <see cref="P:System.Web.HttpContext.Current"/> object.
            </para>
            <para>
            For the instance of the registered type to be disposed automatically when the HTTP request completes,
            make sure to register the <see cref="T:Unity.AspNet.Mvc.UnityPerRequestHttpModule"/> with the web application.
            To do this, invoke the following in the Unity bootstrapping class (typically UnityMvcActivator.cs):
            <code>DynamicModuleUtility.RegisterModule(typeof(UnityPerRequestHttpModule));</code>
            </para>
            </remarks>
        </member>
        <member name="M:Unity.AspNet.Mvc.PerRequestLifetimeManager.GetValue(Unity.Lifetime.ILifetimeContainer)">
            <summary>
            Retrieves a value from the backing store associated with this lifetime policy.
            </summary>
            <returns>The desired object, or null if no such object is currently stored.</returns>
        </member>
        <member name="M:Unity.AspNet.Mvc.PerRequestLifetimeManager.SetValue(System.Object,Unity.Lifetime.ILifetimeContainer)">
            <summary>
            Stores the given value into the backing store for retrieval later.
            </summary>
            <param name="newValue">The object being stored.</param>
            <param name="container"></param>
        </member>
        <member name="M:Unity.AspNet.Mvc.PerRequestLifetimeManager.RemoveValue(Unity.Lifetime.ILifetimeContainer)">
            <summary>
            Removes the given object from the backing store.
            </summary>
        </member>
        <member name="M:Unity.AspNet.Mvc.PerRequestLifetimeManager.OnCreateLifetimeManager">
            <summary>
            Creates clone
            </summary>
            <returns></returns>
        </member>
        <member name="T:Unity.AspNet.Mvc.UnityDependencyResolver">
            <summary>
            An implementation of <see cref="T:System.Web.Mvc.IDependencyResolver"/> that wraps a Unity container.
后面还有 71 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。