protected override void OnFirstCallback() { _hostConfigRuleSubs = Client.CreateCache( delegate(CacheChangeData update) { Interlocked.Increment(ref _ruleUpdatesQueued); _MainThreadQueue.Dispatch <object>(null, OnRuleUpdate); }, null); _hostConfigRuleSubs.SubscribeWait <HostConfigRule>(RuleHelper.MakeRuleFilter( EnvHelper.EnvName(Client.ClientInfo.ConfigEnv), Client.ClientInfo.HostName, ServerInstance, Client.ClientInfo.UserName)); Interlocked.Increment(ref _ruleUpdatesQueued); _MainThreadQueue.Dispatch <object>(null, OnRuleUpdate); }