private void ActivateAndRegisterExtensibilityPoint(ExtensibilityPointInfo info) { var extensibilityPoint = EntityActivator.Current.GetExtensibilityPointHandler(info); extensibilityPoint.Initialize(info, RuntimeContext); RuntimeContext.RegisterExtensibilityPoint(info.Id, extensibilityPoint); }
/// <summary> /// Registers new extensibility point /// </summary> /// <param name="extensibilityPointInfo">The extensibility point information.</param> protected override void OnRegisterExtensibilityPoint(ExtensibilityPointInfo extensibilityPointInfo) { var e = new NewExtensibilityPointRegistrationEvent { ExtensibilityPoint = extensibilityPointInfo }; RaiseRuntimeEvent(e); if (!e.IsRegistrationAllowed) { return; } var extensibilityPoint = EntityActivator.GetExtensibilityPointHandler(e.ExtensibilityPoint); extensibilityPoint.Initialize(extensibilityPointInfo, this); OnRegisterExtensibilityPoint(e.ExtensibilityPoint.Id, extensibilityPoint); }
protected override IExtensibilityPointHandler OnGetExtensibilityPointHandler(ExtensibilityPointInfo info) { return(Instantiate <IExtensibilityPointHandler>(info.ClassName)); }
public void Initialize(ExtensibilityPointInfo extensibilityPointInfo, RuntimeContext context) { _runtimeContext = context; }
private void ActivateAndRegisterExtensibilityPoint(ExtensibilityPointInfo info) { RuntimeContext.RegisterExtensibilityPoint(info); }
protected abstract IExtensibilityPointHandler OnGetExtensibilityPointHandler(ExtensibilityPointInfo info);
/// <summary> /// Instantiates extensibility point using IExtensibilityPointInfo information /// </summary> /// <param name="info">Information about the extensibility point</param> /// <returns>Instantiated extensibility point</returns> public IExtensibilityPointHandler GetExtensibilityPointHandler(ExtensibilityPointInfo info) { Logger.TraceFormat("GetExtensibilityPointHandler for {info}", info); return(OnGetExtensibilityPointHandler(info)); }
/// <summary> /// Registers new extensibility point /// </summary> /// <param name="extensibilityPointInfo">Extensibility point definition</param> public void RegisterExtensibilityPoint(ExtensibilityPointInfo extensibilityPointInfo) => OnRegisterExtensibilityPoint(extensibilityPointInfo);
/// <summary> /// Registers new extensibility point /// </summary> /// <param name="extensibilityPointInfo">The extensibility point information.</param> protected abstract void OnRegisterExtensibilityPoint(ExtensibilityPointInfo extensibilityPointInfo);
/// <summary> /// Instantiates extensibility point using IExtensibilityPointInfo information /// </summary> /// <param name="info">Information about the extensibility point</param> /// <returns>Instantiated extensibility point</returns> public IExtensibilityPointHandler GetExtensibilityPointHandler(ExtensibilityPointInfo info) { Logger.TraceFormat("GetExtensibilityPointHandler for {info}", info); return(Instantiate <IExtensibilityPointHandler>(info.ClassName)); }