Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

TmuxTestFactory.CreateSessionAsync

Starts a server and a session in it, both owned by this test.

Source and package
Qualified name
LibTmux.Testing.TmuxTestFactory.CreateSessionAsync
Namespace
LibTmux.Testing
Declared in
TmuxTestFactory
Package
LibTmux
Source
src/LibTmux.Testing/TmuxTestFactory.cs

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 (TmuxTestOptions?) – How to reach tmux, or null for a socket of its own. for CreateSessionAsync(options, cancellationToken)

    Default null

  • cancellationToken (CancellationToken) – Cancels the tmux commands.

    Default default

  • server (Server) – The server to start it on. for CreateSessionAsync(server, options, cancellationToken)

  • options (TmuxTestOptions?) – What to name it, or null for a name of its own. for CreateSessionAsync(server, options, cancellationToken)

    Default null

Returns

The scope owning the session.

Recorded calls

source calls
No call edges in the C# model.

The 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.

Esc
Search in

Type to search.

Reference previewOpen reference