1. 24 5月, 2023 1 次提交
  2. 23 5月, 2023 1 次提交
  3. 20 5月, 2023 1 次提交
  4. 18 5月, 2023 1 次提交
  5. 17 5月, 2023 5 次提交
  6. 16 5月, 2023 10 次提交
  7. 12 5月, 2023 2 次提交
  8. 09 5月, 2023 2 次提交
  9. 06 5月, 2023 1 次提交
  10. 05 5月, 2023 2 次提交
    • E
      [release/7.0-staging] Make WindowsServiceLifetime gracefully stop (#85656) · c8ab0d33
      Eric StJohn 提交于
      * Make WindowsServiceLifetime gracefully stop (#83892)
      
      * Make WindowsServiceLifetime gracefully stop
      
      WindowsServiceLifetime was not waiting for ServiceBase to stop the service.  As a result
      we would sometimes end the process before notifying service control manager that the service
      had stopped -- resulting in an error in the eventlog and sometimes a service restart.
      
      We also were permitting multiple calls to Stop to occur - through SCM callbacks, and through
      public API.  We must not call SetServiceStatus again once the service is marked as stopped.
      
      * Alternate approach to ensuring we only ever set STATE_STOPPED once.
      
      * Avoid calling ServiceBase.Stop on stopped service
      
      I fixed double-calling STATE_STOPPED in ServiceBase, but this fix will
      not be present on .NETFramework.  Workaround that by avoiding calling
      ServiceBase.Stop when the service has already been stopped by SCM.
      
      * Add tests for WindowsServiceLifetime
      
      These tests leverage RemoteExecutor to avoid creating a separate service
      assembly.
      
      * Respond to feedback and add more tests.
      
      This better integrates with the RemoteExecutor component as well,
      by hooking up the service process and fetching its handle.
      
      This gives us the correct logging and exitcode handling from
      RemoteExecutor.
      
      * Honor Cancellation in StopAsync
      
      * Fix bindingRedirects in RemoteExecutor
      
      * Use Async lambdas for service testing
      
      * Fix issue on Win7 where duplicate service descriptions are disallowed
      
      * Respond to feedback
      
      * Fix comment and add timeout
      
      * Fix test condition
      
      * Enable M.E.H.WindowsServices and S.SP.ServiceController for servicing
      
      * Make service wait on its state before stopping (#84447)
      
      * Fix WindowsService Tests where RemoteExecutor is unsupported
      
      * Enable MS.W.C for servicing
      
      * Reference latest Microsoft.Extensions.Logging.Abstractions
      
      This package has been serviced and we compile against the serviced
      version of its assemblies.
      
      None of the directly referenced projects have been serviced so our
      package doesn't restore the serviced versions.
      
      Lift up the dependency on Logging.Abstractions to ensure we reference
      the serviced package.
      
      ---------
      Co-authored-by: NVladimir Sadov <vsadov@microsoft.com>
      c8ab0d33
    • D
  11. 04 5月, 2023 8 次提交
  12. 03 5月, 2023 1 次提交
  13. 28 4月, 2023 3 次提交
  14. 27 4月, 2023 2 次提交