blob: ed585da0de679e4524a774fa2fc88b8a0c200b68 [file] [log] [blame] [view]
# serve method
*[<Null safety>](https://dart.dev/null-safety)*
void serve
([Outgoing](../../package-fuchsia_services_services/Outgoing-class.md) outgoing)
<p>Exposes the Agent's <code>fidl.Agent</code> instance to the Outgoing directory. In
other words, advertises this as an <code>fidl.Agent</code> to the rest of the system
via <a href="../../package-fuchsia_services_services/Outgoing-class.md">Outgoing</a>.</p>
<p>This class should be called before the Outgoing directory is served.</p>
## Implementation
```dart
void serve(Outgoing outgoing);
```