Stores.cs 683 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Ips.Sps.Store
  7. {
  8. public sealed class Stores
  9. {
  10. public readonly static Stores It = new Stores();
  11. private Stores()
  12. {
  13. }
  14. public SynchronizationContext SyncContext { get; private set; }
  15. public PesStore PesStore { get; private set; }
  16. public PasStore PasStore { get; private set; }
  17. public void Init(SynchronizationContext context)
  18. {
  19. SyncContext = context;
  20. PesStore = new PesStore(context);
  21. PasStore = new PasStore(context);
  22. }
  23. }
  24. }