public void SetContext() { Context.Clear(); _countersDb = CountersDb.New(); Context.With(_countersDb); }
private VcallSubsystem(VcallConfiguration vconfig) { _connectivityTag = Helpers.GetRandomName(); Logger.Config = vconfig.Logging; _countersDb = CountersDb.New(); using (Context.With(_countersDb)) { _self = new Self(); _engine = new Engine(_self); var resolvingConfig = FillPropertiesOf<HostResolverConfiguration>.From(vconfig); _self.mutex = new Object(); _self.vconfig = vconfig; _self.repo = Repository.New(); _self.resolver = HostResolver.New(resolvingConfig); _self.connectivity = ConnectivityManager.New(); _self.counters = _countersDb.NewCounters(); } }