Exemple #1
0
		private void OnTypeLoaded (ITypeEvent typeEvent)
		{
			if (filter.Count > 0 && !filter.Any (f => typeEvent.Type.Assembly.Path.StartsWith (f)))
				return;

			loadedTypes.Add (typeEvent.Type);
			if (TypeLoaded != null)
				TypeLoaded (typeEvent.Type);
		}
Exemple #2
0
        private void OnTypeLoaded(ITypeEvent typeEvent)
        {
            LogProvider.Log("TypeLoaded {0} {1}", typeEvent.Type.Name, typeEvent.Type.Assembly.Path);
            if (!filter.Any(f => typeEvent.Type.Assembly.Path.StartsWith(f)))
            {
                return;
            }

            loadedTypes.Add(typeEvent.Type);
            foreach (var file in typeEvent.Type.SourceFiles)
            {
                if (!sourceFiles.Contains(file))
                {
                    sourceFiles.Add(file);
                }
            }
            if (TypeLoaded != null)
            {
                TypeLoaded(typeEvent.Type);
            }
        }
Exemple #3
0
        private void OnTypeLoaded(ITypeEvent typeEvent)
        {
            if (filter.Count > 0 && !filter.Any (f => typeEvent.Type.Assembly.Path.StartsWith (f)))
                return;

            loadedTypes.Add (typeEvent.Type);
            if (TypeLoaded != null)
                TypeLoaded (typeEvent.Type);
        }
Exemple #4
0
 private void OnTypeLoaded(ITypeEvent typeEvent)
 {
     loadedTypes.Add (typeEvent.Type);
     if (TypeLoaded != null)
         TypeLoaded (typeEvent.Type);
 }
Exemple #5
0
        private void OnTypeLoaded(ITypeEvent typeEvent)
        {
            LogProvider.Log ("TypeLoaded {0} {1}", typeEvent.Type.Name, typeEvent.Type.Assembly.Path);
            if (!filter.Any (f => typeEvent.Type.Assembly.Path.StartsWith (f)))
                return;

            loadedTypes.Add (typeEvent.Type);
            foreach (var file in typeEvent.Type.SourceFiles)
                if (!sourceFiles.Contains (file))
                    sourceFiles.Add (file);
            if (TypeLoaded != null)
                TypeLoaded (typeEvent.Type);
        }