Example #1
0
        private void Init(String compensator, String description, CompensatorOptions flags)
        {
            // Create the logcontrol object:
            DBG.Info(DBG.CRM, "Creating the log-control object");
            _control = new CrmLogControl();

            DBG.Info(DBG.CRM, "Registering the compensator '" + compensator + "' w/ the control.");
            _control.RegisterCompensator(compensator, description, (int)flags);

            DBG.Info(DBG.CRM, "Getting monitor from log-control object");
            _monitor = _control.GetMonitor();
        }
Example #2
0
 internal Clerk(CrmLogControl logControl)
 {
     DBG.Assert(logControl != null, "logControl object is null!");
     _control = logControl;
     _monitor = _control.GetMonitor();
 }