// --------------------------------------------------------------------- internal unsafe void OnOmsClientConfig(ref f9rc.RcClientSession ses, ref f9oms.ClientConfig cfg) { fixed(void *pcfg = &cfg) { this.Config_ = (f9oms.ClientConfig *)pcfg; } if (!this.CoreTDay_.Equals(cfg.CoreTDay_)) { this.LastSNO_ = 0; this.CoreTDay_ = cfg.CoreTDay_; } this.RequestRecs_ = new RequestRec[cfg.RequestLayoutCount_]; for (uint iReqLayout = 0; iReqLayout < cfg.RequestLayoutCount_; ++iReqLayout) { this.RequestRecs_[iReqLayout] = new RequestRec(); this.RequestRecs_[iReqLayout].Fields_ = new string[cfg.RequestLayoutArray_[iReqLayout]->FieldCount_]; } f9oms.Api.SubscribeReport(ref ses, ref cfg, this.LastSNO_ + 1, f9oms.RptFilter.AllPass); }
// --------------------------------------------------------------------- internal unsafe void OnRcLinkEv(ref f9rc.RcClientSession ses, f9io.State st, fon9.CStrView info) { Console.WriteLine($"OnRcLinkEv|st={st}|info={info}"); this.Config_ = null; }