forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIDependencyResolver.cs
More file actions
22 lines (21 loc) · 1.06 KB
/
IDependencyResolver.cs
File metadata and controls
22 lines (21 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace System.Web.Http.Dependencies
{
/// <summary>
/// Represents a dependency injection container.
/// </summary>
public interface IDependencyResolver : IDependencyScope
{
/// <summary>
/// Starts a resolution scope. Objects which are resolved in the given scope will belong to
/// that scope, and when the scope is disposed, those objects are returned to the container.
/// Implementers should return a new instance of <see cref="IDependencyScope"/> every time this
/// method is called, unless the container does not have any concept of scope or resource
/// release (in which case, it would be okay to return 'this', so long as the calls to
/// <see cref="IDisposable.Dispose"/> are effectively NOOPs).
/// </summary>
/// <returns>The dependency scope.</returns>
IDependencyScope BeginScope();
}
}