-
Notifications
You must be signed in to change notification settings - Fork 2k
/
ISiloBuilder.cs
25 lines (23 loc) · 1.04 KB
/
ISiloBuilder.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
using System;
using System.Collections.Generic;
using Microsoft.Extensions.DependencyInjection;
namespace Orleans.Hosting
{
/// <summary>
/// Functionality for building <see cref="ISiloHost"/> instances.
/// </summary>
public interface ISiloBuilder
{
/// <summary>
/// A central location for sharing state between components during the silo building process.
/// </summary>
IDictionary<object, object> Properties { get; }
/// <summary>
/// Configures services in the container. This can be called multiple times and the results will be additive.
/// </summary>
/// <param name="configureDelegate">The delegate for configuring the <see cref="IServiceCollection"/> that will be used
/// to construct the <see cref="IServiceProvider"/>.</param>
/// <returns>The same instance of the silo builder for chaining.</returns>
ISiloBuilder ConfigureServices(Action<Microsoft.Extensions.Hosting.HostBuilderContext, IServiceCollection> configureDelegate);
}
}