public LogX Finalize()
        {
            LogX instance = Instance;

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

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

            instance.Name = $"{name}.db";
            return(instance);
        }
        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);
        }