コード例 #1
0
        public static ApertureAgent UseRestartWithBackOffSupervision(
            this ApertureAgent agent,
            RestartWithBackOff.Config config = null)
        {
            agent.UseSupervisor(new RestartWithBackOff(config ?? new RestartWithBackOff.Config()));

            return(agent);
        }
コード例 #2
0
 public static ApertureAgent UseOneForAllSupervision(this ApertureAgent agent) =>
 agent.UseSupervisor(new OneForAll());
コード例 #3
0
ファイル: Worker.cs プロジェクト: aneshas/aperture
 public Worker(ApertureAgent apertureAgent, ILogger <Worker> logger, IHostApplicationLifetime applicationLifetime)
 {
     _apertureAgent       = apertureAgent;
     _logger              = logger;
     _applicationLifetime = applicationLifetime;
 }