Esempio n. 1
0
        internal IEnumerable <TypeDescriptor> GetAllTypes(string assemblyLocation)
        {
            using (var inspector = new InspectorHandle <AllTypesActor>(Path.GetDirectoryName(assemblyLocation)))
            {
                inspector.Value.AssemblyLocation = assemblyLocation;

                return(inspector.Value.Execute());
            }
        }
Esempio n. 2
0
        internal Action AnalyzeInheritanceAsync(string assemblyLocation, bool ignoreDotNetTypes, TypeDescriptor typeToAnalyse, Action <int> progressCallback, Action <TypeRelationshipDocument> completedCallback)
        {
            using (var inspector = new InspectorHandle <InheritanceActor>(Path.GetDirectoryName(assemblyLocation)))
            {
                inspector.Value.IgnoreDotNetTypes = ignoreDotNetTypes;
                inspector.Value.AssemblyLocation  = assemblyLocation;
                inspector.Value.SelectedType      = typeToAnalyse;

                return(RunAsync(inspector.Value, progressCallback, completedCallback));
            }
        }