Example #1
0
 public LoginAdapter(IProgressConnection connection)
 {
     _nLogLogger  = new NLogLogger("LoginAdapter");
     _nLogLoggerP = new NLogLogger("Performance", "LoginAdapter");
     try
     {
         this._asProxyAppObject = new SharedProxyAppObject(connection.Connection);
         this._pdsContext       = new pdsContextDataSet();
         this._poLoginproxy     = this._asProxyAppObject.CreatePO_loginproxy();
     }
     catch (Exception ex)
     {
         _nLogLogger.ErrorException("Failed in login adapter ", ex);
         // PMC 02/09/2018 - IBM AppScan - This has been manually reviewed and passed as being safe - Does not reveal error, logs securely
         ErrorReportingHelper.ReportProgramErrors($"Error in login constructor - {ex.Message}");
     }
 }
Example #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (this._disposed)
            {
                return;
            }
            if (!disposing)
            {
                return;
            }
            this._poLoginproxy?.Dispose();
            this._poLoginproxy = null;
            this._asProxyAppObject?.Dispose();
            this._asProxyAppObject = null;

            this._pdsContext?.Dispose();
            this._pdsContext = null;
            this._disposed   = true;
        }