protected override void DoConfigure(NFX.Environment.IConfigSectionNode node) { try { base.DoConfigure(node); var sguid = node.AttrByName(CONFIG_GUID_ATTR).ValueAsString(); if (!string.IsNullOrEmpty(sguid)) { StoreGUID = new Guid(sguid); } m_Provider = FactoryUtils.MakeAndConfigure(node[CONFIG_PROVIDER_SECT]) as ObjectStoreProvider; if (m_Provider == null) { throw new NFXException("Provider is null"); } m_Provider.__setComponentDirector(this); ObjectLifeSpanMS = node.AttrByName(CONFIG_OBJECT_LIFE_SPAN_MS_ATTR).ValueAsInt(DEFAULT_OBJECT_LEFESPAN_MS); BucketCount = node.AttrByName(CONFIG_BUCKET_COUNT_ATTR).ValueAsInt(DEFAULT_BUCKET_COUNT); } catch (Exception error) { throw new NFXException(StringConsts.OBJSTORESVC_PROVIDER_CONFIG_ERROR + error.Message, error); } }
protected override void DoConfigure(NFX.Environment.IConfigSectionNode node) { try { base.DoConfigure(node); m_Provider = FactoryUtils.MakeAndConfigure(node[CONFIG_PROVIDER_SECTION], typeof(NOPInstrumentationProvider), new[] { this }) as InstrumentationProvider; } catch (Exception error) { throw new NFXException(StringConsts.INSTRUMENTATIONSVC_PROVIDER_CONFIG_ERROR + error.Message, error); } }
protected override void DoConfigure(NFX.Environment.IConfigSectionNode node) { try { base.DoConfigure(node); m_Provider = FactoryUtils.MakeAndConfigure(node[CONFIG_PROVIDER_SECTION]) as InstrumentationProvider; if (m_Provider == null) { throw new NFXException("Provider is null"); } m_Provider.__setComponentDirector(this); } catch (Exception error) { throw new NFXException(StringConsts.INSTRUMENTATIONSVC_PROVIDER_CONFIG_ERROR + error.Message, error); } }