Beispiel #1
0
        /// <summary>
        /// 触发ServiceLocator的Resolved事件
        /// </summary>
        /// <param name="e">事件参数</param>
        protected virtual void OnResolved(ServiceEventArgs e)
        {
            EventHandler <ServiceEventArgs> handler = Resolved;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 触发ServiceLocator的Registering事件
        /// </summary>
        /// <param name="e">事件参数</param>
        protected virtual void OnRegistering(ServiceEventArgs e)
        {
            EventHandler <ServiceEventArgs> handler = Registering;

            if (handler != null)
            {
                handler(this, e);
            }
        }