PlacementStrategy.PopulateGrainProperties 方法

定义

填充 grain 属性以指定首选放置策略。

public virtual void PopulateGrainProperties (IServiceProvider services, Type grainClass, Orleans.Runtime.GrainType grainType, System.Collections.Generic.Dictionary<string,string> properties);
abstract member PopulateGrainProperties : IServiceProvider * Type * Orleans.Runtime.GrainType * System.Collections.Generic.Dictionary<string, string> -> unit
override this.PopulateGrainProperties : IServiceProvider * Type * Orleans.Runtime.GrainType * System.Collections.Generic.Dictionary<string, string> -> unit
Public Overridable Sub PopulateGrainProperties (services As IServiceProvider, grainClass As Type, grainType As GrainType, properties As Dictionary(Of String, String))

参数

services
IServiceProvider

服务提供程序。

grainClass
Type

grain 类。

grainType
GrainType

粒度类型。

properties
Dictionary<String,String>

将由此方法调用填充的 grain 属性。

适用于