TmuxTestFactory.CreateSessionAsync
Starts a server and a session in it, both owned by this test.
Source and package
- Qualified name
-
LibTmux .Testing .Tmux Test Factory. Create Session Async - Namespace
- LibTmux.Testing
- Declared in
TmuxTestFactory- Package
- LibTmux
- Source
- src/LibTmux.Testing/TmuxTestFactory.cs
- async Task<Temporary
Session > CreateSessionAsync( TmuxScope Test ? options = null, CancellationOptions Token cancellationToken = default )async Task<TemporarySession > CreateSessionAsync( Server server, TmuxScope Test ? options = null, CancellationOptions Token cancellationToken = default ) -
Description
The server this makes is left to the session's own scope, which is a session on a server nobody else will kill.
- Parameters
-
-
options(TmuxTest ?) – How to reach tmux, or null for a socket of its own. forOptions CreateSessionAsync(options, cancellationToken)Default
null -
cancellationToken(CancellationToken ) – Cancels the tmux commands.Default
default -
server(Server) – The server to start it on. forCreateSessionAsync(server, options, cancellationToken) -
options(TmuxTest ?) – What to name it, or null for a name of its own. forOptions CreateSessionAsync(server, options, cancellationToken)Default
null
-
- Returns
-
The scope owning the session.
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Testing.TmuxTestFactory.CreateSessionAsync.