コード例 #1
0
        private void ActivateAndRegisterExtensibilityPoint(ExtensibilityPointInfo info)
        {
            var extensibilityPoint = EntityActivator.Current.GetExtensibilityPointHandler(info);

            extensibilityPoint.Initialize(info, RuntimeContext);

            RuntimeContext.RegisterExtensibilityPoint(info.Id, extensibilityPoint);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 protected override IExtensibilityPointHandler OnGetExtensibilityPointHandler(ExtensibilityPointInfo info)
 {
     return(Instantiate <IExtensibilityPointHandler>(info.ClassName));
 }
コード例 #4
0
 public void Initialize(ExtensibilityPointInfo extensibilityPointInfo, RuntimeContext context)
 {
     _runtimeContext = context;
 }
コード例 #5
0
 private void ActivateAndRegisterExtensibilityPoint(ExtensibilityPointInfo info)
 {
     RuntimeContext.RegisterExtensibilityPoint(info);
 }
コード例 #6
0
 protected abstract IExtensibilityPointHandler OnGetExtensibilityPointHandler(ExtensibilityPointInfo info);
コード例 #7
0
 /// <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));
 }
コード例 #8
0
 /// <summary>
 /// Registers new extensibility point
 /// </summary>
 /// <param name="extensibilityPointInfo">Extensibility point definition</param>
 public void RegisterExtensibilityPoint(ExtensibilityPointInfo extensibilityPointInfo)
 => OnRegisterExtensibilityPoint(extensibilityPointInfo);
コード例 #9
0
 /// <summary>
 /// Registers new extensibility point
 /// </summary>
 /// <param name="extensibilityPointInfo">The extensibility point information.</param>
 protected abstract void OnRegisterExtensibilityPoint(ExtensibilityPointInfo extensibilityPointInfo);
コード例 #10
0
 /// <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));
 }