AbstractManager.cs 896 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.InformationProtection;
  7. namespace AipGateway.AIP
  8. {
  9. public abstract class AbstractManager : IDisposable
  10. {
  11. public int LastErrNo { get; internal set; }
  12. public string LastErrMsg { get; internal set; }
  13. protected void SetError(int errNo, string errMsg1, string errMsg2 = "No Exception Message.")
  14. {
  15. LastErrNo = errNo;
  16. LastErrMsg = errMsg1 + "\r\n" + errMsg2;
  17. Console.WriteLine("AbstractManager::SetError ==> {0}, {1}, {2}", errNo, errMsg1, errMsg2);
  18. }
  19. public abstract bool CreateProfile(ref MipContext mipContext);
  20. public abstract bool CreateEngine(ref Identity identity, ref AuthDelegateImplementation authDelegate);
  21. public abstract void Dispose();
  22. }
  23. }