Microsoft.Cci.MetadataHostEnvironment.RegisterAsLatest C# (CSharp) Method

RegisterAsLatest() public method

Registers the given unit as the latest one associated with the unit's location. Such units can then be discovered by clients via GetUnit.
public RegisterAsLatest ( IUnit unit ) : void
unit IUnit The unit to register.
return void
    public void RegisterAsLatest(IUnit unit) {
      Contract.Requires(unit != null);

      lock (GlobalLock.LockingObject) {
        this.unitCache[unit.UnitIdentity] = unit;
      }
    }