示例#1
0
 public StartupTasksHealthCheck(StartupTaskContext context)
 {
     _context = context;
 }
 public StartupTasksMiddleware(StartupTaskContext context, RequestDelegate next)
 {
     _context = context;
     _next    = next;
 }
示例#3
0
 /// <summary>
 /// The default constructorl.
 /// </summary>
 /// <param name="startupTaskContext">The asynchronous context.</param>
 /// <param name="clusterClient">The cluster client to connect to Orleans cluster asynchronously.</param>
 /// <param name="logger">The logger to use to log operations.</param>
 public ClusterClientStartupTask(StartupTaskContext startupTaskContext, IClusterClient clusterClient, ILogger <ClusterClientStartupTask> logger)
 {
     StartupContext = startupTaskContext ?? throw new ArgumentNullException(nameof(startupTaskContext));
     ClusterClient  = clusterClient ?? throw new ArgumentNullException(nameof(clusterClient));
     Logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }