Exemple #1
0
        public virtual void OnLoaded(InternalConfiguration configuration)
        {
            DbConfigurationLoadedEventArgs configurationLoadedEventArgs = new DbConfigurationLoadedEventArgs(configuration);
            EventHandler <DbConfigurationLoadedEventArgs> loadedHandler = this._loadedHandler;

            if (loadedHandler != null)
            {
                loadedHandler((object)configuration.Owner, configurationLoadedEventArgs);
            }
            configuration.DispatchLoadedInterceptors(configurationLoadedEventArgs);
        }
        public virtual void OnLoaded(InternalConfiguration configuration)
        {
            DebugCheck.NotNull(configuration);

            var eventArgs = new DbConfigurationLoadedEventArgs(configuration);

            var handler = _loadedHandler;

            if (handler != null)
            {
                handler(configuration.Owner, eventArgs);
            }

            configuration.DispatchLoadedInterceptors(eventArgs);
        }