DispatchRuntime.InstanceContextInitializers DispatchRuntime.InstanceContextInitializers DispatchRuntime.InstanceContextInitializers DispatchRuntime.InstanceContextInitializers Property

Definition

Gets a collection of IInstanceContextInitializer objects that can be used to inspect or modify an InstanceContext object when it is first created.

public:
 property System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IInstanceContextInitializer ^> ^ InstanceContextInitializers { System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IInstanceContextInitializer ^> ^ get(); };
[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IInstanceContextInitializer> InstanceContextInitializers { get; }
member this.InstanceContextInitializers : System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IInstanceContextInitializer>
Public ReadOnly Property InstanceContextInitializers As SynchronizedCollection(Of IInstanceContextInitializer)
Property Value

Remarks

Use the InstanceContextInitializers property to add a custom initializer that can inspect or modify an InstanceContext object when it is first created. The frequency with which InstanceContext objects are created is controlled by the InstanceContextMode property.

Applies to