PlacementStrategy.PopulateGrainProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
填充 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 属性。