/// <summary> /// 停止服务 /// </summary> private void Stop() { FlowAdapter flowAdapter = _serviceProvider.GetRequiredService <FlowAdapter>(); flowAdapter.Stop(); FixedJobTask fixedJobTask = _serviceProvider.GetRequiredService <FixedJobTask>(); fixedJobTask.Stop(); }
/// <summary> /// 停止服务 /// </summary> private void Stop() { DensityAdapter densityAdapter = _serviceProvider.GetRequiredService <DensityAdapter>(); densityAdapter.Stop(); FixedJobTask fixedJobTask = _serviceProvider.GetRequiredService <FixedJobTask>(); fixedJobTask.Stop(); }