/
IReadOnlyKernel.cs
45 lines (42 loc) · 1.9 KB
/
IReadOnlyKernel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// -------------------------------------------------------------------------------------------------
// <copyright file="IReadOnlyKernel.cs" company="Ninject Project Contributors">
// Copyright (c) 2007-2010 Enkari, Ltd. All rights reserved.
// Copyright (c) 2010-2020 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------
namespace Ninject
{
using System;
using Ninject.Activation;
using Ninject.Planning.Bindings;
using Ninject.Syntax;
/// <summary>
/// A kernel that is used to resolve instances and has a configuration that can't be changed anymore.
/// </summary>
public interface IReadOnlyKernel : IResolutionRoot, IServiceProvider
{
/// <summary>
/// Gets the bindings registered for the specified service.
/// </summary>
/// <param name="service">The service in question.</param>
/// <returns>
/// A series of bindings that are registered for the service.
/// </returns>
/// <exception cref="ArgumentNullException"><paramref name="service"/> is <see langword="null"/>.</exception>
IBinding[] GetBindings(Type service);
}
}