Beispiel #1
0
 public RequestInsert(ScorocodeSdkStateHolder stateHolder, string collectionName,
                      DocumentInfo doc = null)
 {
     _app  = stateHolder.ApplicationId;
     _cli  = stateHolder.ClientKey;
     _acc  = stateHolder.MasterKey;
     _sess = stateHolder.SessionId;
     _coll = collectionName;
     if (doc != null)
     {
         _doc = doc.GetFields();
     }
     else
     {
         _doc = new Dictionary <string, object>();
     }
 }