Table of Contents

Class BuildLogHub

Namespace
Ando.Server.Hubs
Assembly
Ando.Server.dll

SignalR hub for streaming build logs in real-time.

public class BuildLogHub : Hub, IDisposable
Inheritance
BuildLogHub
Implements
Inherited Members

Constructors

BuildLogHub(ILogger<BuildLogHub>)

public BuildLogHub(ILogger<BuildLogHub> logger)

Parameters

logger ILogger<BuildLogHub>

Methods

GetGroupName(int)

Gets the SignalR group name for a build.

public static string GetGroupName(int buildId)

Parameters

buildId int

Returns

string

GetUserGroupName(int)

Gets the SignalR group name for a user.

public static string GetUserGroupName(int userId)

Parameters

userId int

Returns

string

JoinBuildLog(int)

Join the log stream for a specific build.

public Task JoinBuildLog(int buildId)

Parameters

buildId int

The build ID to subscribe to.

Returns

Task

LeaveBuildLog(int)

Leave the log stream for a specific build.

public Task LeaveBuildLog(int buildId)

Parameters

buildId int

The build ID to unsubscribe from.

Returns

Task

OnConnectedAsync()

Called when a new connection is established with the hub.

public override Task OnConnectedAsync()

Returns

Task

A Task that represents the asynchronous connect.

OnDisconnectedAsync(Exception?)

Called when a connection with the hub is terminated.

public override Task OnDisconnectedAsync(Exception? exception)

Parameters

exception Exception

Returns

Task

A Task that represents the asynchronous disconnect.