public void HandleCommand(IStore store, BSon.BSonDoc command)
 {
     if (command.HasProperty(CommandKeyword.Collection))
       {
     var cc = store.GetCollection((command[CommandKeyword.Collection] ?? string.Empty).ToString());
     if (cc != null)
       cc.Flush();
       }
 }
示例#2
0
        public void HandleCommand(IStore store, BSon.BSonDoc command)
        {
            BSonDoc value = null;
              var collection = string.Empty;

              if (command.HasProperty(CommandKeyword.Value))
              {
            value = command[CommandKeyword.Value] as BSonDoc;
              }
              if (command.HasProperty(CommandKeyword.Collection))
              {
            collection = (command[CommandKeyword.Collection] ?? string.Empty).ToString();
              }

              OnHandle(store, collection, command, value);
        }