共用方式為


PlacementStrategy.PopulateGrainProperties 方法

定義

填入粒紋屬性以指定慣用的位置策略。

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

粒紋類別。

grainType
GrainType

粒紋類型。

properties
Dictionary<String,String>

這個方法呼叫會填入的粒紋屬性。

適用於