Redpoint.Uba 2024.1345.1379

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Redpoint.Uba --version 2024.1345.1379                
NuGet\Install-Package Redpoint.Uba -Version 2024.1345.1379                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Redpoint.Uba" Version="2024.1345.1379" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Redpoint.Uba --version 2024.1345.1379                
#r "nuget: Redpoint.Uba, 2024.1345.1379"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Redpoint.Uba as a Cake Addin
#addin nuget:?package=Redpoint.Uba&version=2024.1345.1379

// Install Redpoint.Uba as a Cake Tool
#tool nuget:?package=Redpoint.Uba&version=2024.1345.1379                

Redpoint.Uba

This library provides an implementation of IProcessExecutor that dispatches processes to Unreal Build Accelerator agents.

Example

After registering the services by calling .AddUba() on your service collection, you can inject IUbaServerFactory. With this, you can create a UBA server, connect it to remote agents, and then run processes:

// Provide the path to the directory that contains UbaHost.dll, libUbaHost.dylib or libUbaHost.so depending on the current platform.
// These files are available by downloading Unreal Engine: https://www.unrealengine.com/
UbaNative.Init(/* ... */);

// Set up the server that will dispatch processes.
await using (_ubaServerFactory
    .CreateServer(
        cachePath /* A path that UBA can use for storage locally. */,
        traceFilePath /* The path that UBA should write the trace file out to. */)
    .AsAsyncDisposable(out var server)
    .ConfigureAwait(false))
{
    // Connect to a remote agent that will run processes. You can call this multiple times, and
    // at any time processes are being executed.
    if (!server.AddRemoteAgent(ip, port))
    {
        // Failed to add remote agent.
    }

    // Run a command through UBA. Commands are put into a queue and then either run locally
    // or on a remote agent depending on which picks it up first.
    try
    {
        var exitCode = await server.ExecuteAsync(
            new UbaProcessSpecification /* Inherits from ProcessSpecification. */
            {
                FilePath = /* ... */,
                Arguments = /* ... */,
                // Optional setting; if true, the UBA server will prefer to wait and run this command
                // on a remote agent rather than running it locally.
                PreferRemote = true,
            },
            CaptureSpecification.Passthrough,
            cancellationToken).ConfigureAwait(false);

        return exitCode;
    }
    catch (OperationCanceledException)
    {
        // Only need to catch this if you're passing cancellationToken to ExecuteAsync (i.e. this
        // exception only fires if you request the process to be cancelled, and not from any UBA
        // internal events).
        return 1;
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.1360.354 37 12/25/2024
2024.1360.60 35 12/25/2024
2024.1360.32 39 12/25/2024
2024.1358.450 60 12/23/2024
2024.1358.359 64 12/23/2024
2024.1358.312 62 12/23/2024
2024.1358.244 68 12/23/2024
2024.1358.120 64 12/23/2024
2024.1348.253 83 12/13/2024
2024.1345.1379 72 12/10/2024
2024.1345.506 63 12/10/2024
2024.1345.379 71 12/10/2024
2024.1345.145 74 12/10/2024
2024.1345.72 63 12/10/2024
2024.1345.69 67 12/10/2024
2024.1345.15 74 12/10/2024
2024.1344.1436 68 12/10/2024
2024.1344.600 78 12/9/2024
2024.1344.411 75 12/9/2024
2024.1340.379 80 12/5/2024
2024.1340.15 82 12/5/2024
2024.1338.786 71 12/3/2024
2024.1338.722 75 12/3/2024
2024.1338.697 70 12/3/2024
2024.1338.639 71 12/3/2024
2024.1338.541 71 12/3/2024
2024.1338.318 75 12/3/2024
2024.1338.298 69 12/3/2024
2024.1338.98 72 12/3/2024
2024.1337.756 71 12/2/2024
2024.1337.634 78 12/2/2024
2024.1337.625 71 12/2/2024
2024.1337.621 70 12/2/2024
2024.1337.594 76 12/2/2024
2024.1337.136 63 12/2/2024
2024.1336.793 79 12/1/2024
2024.1336.773 75 12/1/2024
2024.1336.305 79 12/1/2024
2024.1336.12 79 12/1/2024
2024.1335.1421 81 11/30/2024
2024.1335.1384 77 11/30/2024
2024.1334.1308 77 11/29/2024
2024.1334.764 74 11/29/2024
2024.1334.722 75 11/29/2024
2024.1330.185 81 11/25/2024
2024.1328.505 78 11/23/2024
2024.1328.470 83 11/23/2024
2024.1328.452 77 11/23/2024
2024.1323.910 81 11/18/2024
2024.1323.653 78 11/18/2024
2024.1323.185 73 11/18/2024
2024.1323.49 75 11/18/2024
2024.1322.714 76 11/17/2024
2024.1320.653 87 11/15/2024
2024.1320.619 80 11/15/2024
2024.1320.601 82 11/15/2024
2024.1320.159 92 11/15/2024
2024.1320.98 80 11/15/2024
2024.1320.2 76 11/15/2024
2024.1319.1431 78 11/15/2024
2024.1319.1335 81 11/14/2024
2024.1317.631 78 11/12/2024
2024.1316.330 88 11/11/2024
2024.1311.540 80 11/6/2024
2024.1306.225 80 11/1/2024
2024.1306.199 83 11/1/2024
2024.1306.171 74 11/1/2024
2024.1306.117 80 11/1/2024
2024.1305.506 80 10/31/2024
2024.1305.502 79 10/31/2024
2024.1305.465 84 10/31/2024
2024.1305.442 79 10/31/2024
2024.1305.399 86 10/31/2024
2024.1299.1070 80 10/25/2024
2024.1289.621 94 10/15/2024
2024.1289.338 92 10/15/2024
2024.1277.836 93 10/5/2024
2024.1277.711 94 10/3/2024
2024.1277.695 89 10/3/2024
2024.1270.409 101 9/26/2024