Class WorkerServer
Namespace: ArmoniK.Api.Worker.Utils
Assembly: ArmoniK.Api.Worker.dll
Convenience class to create a web application with the given gRPC Service for ArmoniK Worker
[PublicAPI]
public static class WorkerServer
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Create<T>(IConfiguration?, Action<IServiceCollection>?)
Create a web application for the given ArmoniK Worker gRPC Service
public static WebApplication Create<T>(IConfiguration? configuration = null, Action<IServiceCollection>? serviceConfigurator = null) where T : Worker.WorkerBase
Parameters
configuration IConfiguration?
Additional configurations
serviceConfigurator Action<IServiceCollection>?
Lambda to configure server services
Returns
The web application initialized
Type Parameters
T
gRPC Service to add to the web application
Create<T>(Action<IServiceCollection, IConfiguration>?)
Create a web application for the given ArmoniK Worker gRPC Service
public static WebApplication Create<T>(Action<IServiceCollection, IConfiguration>? configurator) where T : Worker.WorkerBase
Parameters
configurator Action<IServiceCollection, IConfiguration>?
Lambda to configure server services
Returns
The web application initialized
Type Parameters
T
gRPC Service to add to the web application