示例#1
0
        public Task CreateCollectionAsync(string name)
        {
            MongoAction a = MongoActionFactory.Default.CreateCollection(name);

            Dispatch(a);
            return(Task.CompletedTask);
        }
示例#2
0
 public void Dispatch(MongoAction writeAction)
 {
     CheckAccess();
     _log.Add(writeAction);
 }
示例#3
0
 public void Dispatch(MongoAction writeAction)
 {
     Log.Add(writeAction);
     writeAction.Execute(Store);
 }
示例#4
0
 protected override MongoActionLog OnCreate(MongoAction action)
 {
     _actions.Add(action);
     return(this);
 }
示例#5
0
 public void Add(MongoAction action)
 => _actions.Add(action);