Beispiel #1
0
        public LogX Finalize()
        {
            LogX instance = Instance;

            MenssegerBusLite.MenssagerBus.Instance.UnSubscriver(instance);
            return(instance);
        }
Beispiel #2
0
        public LogX SetPath(string path)
        {
            LogX instance = Instance;

            instance.Path = path;
            return(instance);
        }
Beispiel #3
0
        public LogX SetName(string name)
        {
            LogX instance = Instance;

            instance.Name = $"{name}.db";
            return(instance);
        }
Beispiel #4
0
        public LogX Initialize()
        {
            LogX instance = Instance;

            if (this.InDB)
            {
                BsonMapper mapper = BsonMapper.Global;

                mapper.Entity <MenssagerLogEvent>()
                .Id(x => x.MenssagerLogEventId);

                LogXRepostory.CreateIfNotExiste(file_name: this.Name, path: this.Path);
            }

            MenssegerBusLite.MenssagerBus.Instance.Subscrive(instance);
            return(instance);
        }