public Scope Push(ScopeLevel level) { Scope s = new Scope(level); scopes.Push(s); return(s); }
internal HotSwapServiceConfiguration( IServiceCollection services, ScopeLevel level) { this.services = services; this.config = new HotSwapInternalConfiguration <TInterface>(services, level); }
public override long GetScopeId(ScopeLevel scopeLevel) { if ((scopeLevel < 0) || ((int)scopeLevel >= zoneIndices.Length)) { throw new ArgumentOutOfRangeException("scopeLevel"); } return zoneIndices[(int)scopeLevel]; }
public override long GetScopeId(ScopeLevel scopeLevel) { if ((scopeLevel < 0) || ((int)scopeLevel >= _zoneIndices.Length)) { throw new ArgumentOutOfRangeException(nameof(scopeLevel)); } return(_zoneIndices[(int)scopeLevel]); }
public override long GetScopeId(ScopeLevel scopeLevel) { if (scopeLevel == ScopeLevel.None || scopeLevel == ScopeLevel.Interface || scopeLevel == ScopeLevel.Link || scopeLevel == ScopeLevel.Subnet) { return(_linuxNetworkInterface.Index); } return(0); }
public Variable FindVariable(string name, ScopeLevel level) { Scope s = scopes.FirstOrDefault(x => x.Level == level); if (s != null) { return(s.GetVariable(name)); } return(null); }
public void AssignIdentifierValue(string name, Value value) { ScopeLevel scope = this; while (scope != null && !scope._values.ContainsKey(name)) { scope = scope.Parent; } if (scope == null) { throw new UndefinedIdentifierException(name); } //if (_values[name].Type != value.Type) // throw new InvalidCastException(); scope._values[name] = new Identifier(value, scope._values[name].Type); }
public Scope() { _scope = new ScopeLevel(); }
public override long GetScopeId(ScopeLevel scopeLevel) { throw new PlatformNotSupportedException(); }
public override long GetScopeId(ScopeLevel scopeLevel) { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); }
public Scope(ScopeLevel level) { Level = level; }
public virtual long GetScopeId(ScopeLevel scopeLevel) { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); }
public ScopeLevel(ScopeLevel parent) { _values = new Dictionary <string, Identifier>(); _parent = parent; }
/// Returns IPv6 scope identifiers. public virtual long GetScopeId(ScopeLevel scopeLevel) { throw new NotImplementedException(); }
/// <inheritdoc /> public long GetScopeId(ScopeLevel scopeLevel) { return(_props.GetScopeId(scopeLevel)); }
public IDisposable PushScope() { _scope = new ScopeLevel(_scope); return new ScopePopper(this); }
public HotSwapInternalConfiguration(IServiceCollection services, ScopeLevel level) { Level = level; InterfaceType = typeof(TInterface); services.AddSingleton <HotSwapServiceFactory <TInterface> >(); }
/// <summary> /// Returns IPv6 scope identifiers. /// </summary> /// <param name="scopeLevel">The scope level.</param> /// <returns>The IPv6 scope identifier.</returns> public virtual long GetScopeId(ScopeLevel scopeLevel) { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); }
public IDisposable PushScope() { _scope = new ScopeLevel(_scope); return(new ScopePopper(this)); }
public void PopScope() { _scope = _scope.Parent; }
/// <inheritdoc /> public long GetScopeId(ScopeLevel scopeLevel) { return(Implementation.GetScopeId(scopeLevel)); }
public virtual long GetScopeId(ScopeLevel scopeLevel);
public ScopeLevel(ScopeLevel parent) { _values = new Dictionary<string, Identifier>(); _parent = parent; }