Interface INameScope
Defines a name scope.
[NotClientImplementable]
public interface INameScope
- Extension Methods
Properties
IsCompleted
Returns whether further registrations are allowed on the scope
bool IsCompleted { get; }
Property Value
Methods
Complete()
Marks the name scope as completed, no further registrations will be allowed
void Complete()
Find(string)
Finds a named element in the name scope, returns immediately, doesn't traverse the name scope stack
object? Find(string name)
Parameters
name
stringThe name.
Returns
- object
The element, or null if the name was not found.
FindAsync(string)
Finds a named element in the name scope, waits for the scope to be completely populated before returning null Returned task is configured to run any continuations synchronously.
SynchronousCompletionAsyncResult<object?> FindAsync(string name)
Parameters
name
stringThe name.
Returns
- SynchronousCompletionAsyncResult<object>
The element, or null if the name was not found.
Register(string, object)
Registers an element in the name scope.
void Register(string name, object element)