TmuxTestFactory.CreateSessionAsync
Starts a server and a session in it, both owned by this test.
Source and package
- Module
- LibTmux.Testing
- Declared in
- TmuxTestFactory
- Package
- LibTmux
- Source
- src/LibTmux.Testing/TmuxTestFactory.cs
- CreateSessionAsync ( options : Tmux
Test ? , cancellationToken : CancellationOptions Token ) Task<TemporarySession > ( server : Server , options : TmuxScope Test ? , cancellationToken : CancellationOptions Token ) Task<TemporarySession >Scope -
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 ( Tmux
Test ? ) – How to reach tmux, or null for a socket of its own. (forOptions CreateSessionAsync(options, cancellationToken)) -
cancellationToken ( Cancellation
Token ) – Cancels the tmux commands. -
server ( Server ) – The server to start it on. (for
CreateSessionAsync(server, options, cancellationToken)) -
options ( Tmux
Test ? ) – What to name it, or null for a name of its own. (forOptions CreateSessionAsync(server, options, cancellationToken))
-
- Returns
-
The scope owning the session.