Skip to content

Commit 571f35a

Browse files
committed
- docs
1 parent f934674 commit 571f35a

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

README.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,52 +15,47 @@ string AssemblyPath(Assembly assembly)
1515
Returns the path to the given assembly.
1616

1717
``` c#
18-
Assembly FindAssemblyNamed(string name)
18+
Task<Assembly> FindAssemblyNamedAsync(string name)
1919
```
2020

2121
Returns the `Assembly` that has the requested `name`; else `null`.
2222

2323
``` c#
24-
Assembly GetAssembly(string assemblyPath)
24+
Task<Assembly> GetAssemblyAsync(string assemblyPath)
2525
```
2626

2727
Returns the requested assembly if found; else `null`.
2828

29-
```c#
30-
IEnumerable<Assembly> GetAssemblies()
31-
```
32-
33-
Returns all reachable assemblies.
34-
3529
``` c#
36-
IEnumerable<Assembly> GetMatchingAssemblies(string regex)
30+
Task<IEnumerable<Assembly>> GetMatchingAssembliesAsync(Regex regex)
3731
```
3832

3933
Returns a collection of assemblies that have their file name matching the given `Regex` expression.
4034

4135
``` c#
42-
IEnumerable<Assembly> GetRuntimeAssemblies()
36+
Task<IEnumerable<Assembly>> GetRuntimeAssembliesAsync()
4337
```
4438

45-
For .Net 4.6+ returns `AppDomain.CurrentDomain.GetAssemblies();`. For .Net Core 2.0+ all the `DependencyContext.Default.GetRuntimeAssemblyNames(RuntimeEnvironment.GetRuntimeIdentifier())` assembly names are resolved.
39+
For .Net 4.6+ (which isn't support in the latest version) returns `AppDomain.CurrentDomain.GetAssemblies();`. For .Net Core 2.0+ all the `DependencyContext.Default.GetRuntimeAssemblyNames(RuntimeEnvironment.GetRuntimeIdentifier())` assembly names are resolved.
4640

4741
``` c#
48-
Type GetType(string typeName)
42+
Task<Type> GetTypeAsync(string typeName)
4943
```
5044

5145
Attempts to find the requested type.
5246

5347
``` c#
54-
IEnumerable<Type> GetTypes(Assembly assembly)
48+
Task<IEnumerable<Type>> GetTypesAsync(Assembly assembly)
5549
```
5650

5751
Returns all types in the given `assembly`.
5852

5953
``` c#
60-
IEnumerable<Type> GetTypesAssignableTo<T>();
61-
IEnumerable<Type> GetTypesAssignableTo(Type type);
62-
IEnumerable<Type> GetTypesAssignableTo<T>(Assembly assembly);
63-
IEnumerable<Type> GetTypesAssignableTo(Type type, Assembly assembly);
54+
Task<IEnumerable<Type>> GetTypesAssignableToAsync(Type type, Assembly assembly)
55+
// and these extensions
56+
Task<IEnumerable<Type>> GetTypesAssignableToAsync<T>();
57+
Task<IEnumerable<Type>> GetTypesAssignableToAsync(Type type);
58+
Task<IEnumerable<Type>> GetTypesAssignableToAsync<T>(Assembly assembly);
6459
```
6560

6661
Returns all the types in the given `assembly` that are assignable to the `type` or `typeof(T)`; if no `assembly` is provided the all assemblies returned by `GetAssemblies()` will be scanned.

0 commit comments

Comments
 (0)