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); }
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); } }
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); }
private void OnTypeLoaded(ITypeEvent typeEvent) { loadedTypes.Add (typeEvent.Type); if (TypeLoaded != null) TypeLoaded (typeEvent.Type); }
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); }