Esempio n. 1
0
        public MongoLogArchiveStore(LogReceiverService director, LogArchiveDimensionsMapper mapper, IConfigSectionNode node) : base(director, mapper, node)
        {
            var cstring = ConfigStringBuilder.Build(node, CONFIG_MONGO_SECTION);

            m_Database               = App.GetMongoDatabaseFromConnectString(cstring);
            m_DefaultChannel         = node.AttrByName(CONFIG_DEFAULT_CHANNEL_ATTR).ValueAsAtom(DEFAULT_CHANNEL);
            m_Serializer             = new BSONSerializer(node);
            m_Serializer.PKFieldName = Query._ID;
        }
Esempio n. 2
0
 protected LogArchiveStore(LogReceiverService director, LogArchiveDimensionsMapper mapper, IConfigSectionNode node) : base(director)
 {
     ConfigAttribute.Apply(this, node);
     m_Mapper = mapper;
 }
 public LogArchiveDimensionsMapper(LogReceiverService director, IConfigSectionNode node) : base(director)
 {
     ConfigAttribute.Apply(this, node);
 }