コード例 #1
0
        /// <summary>
        /// Initializes the document manager, with preloaded
        /// documents of a change event.
        /// </summary>
        /// <param name="client">Client to load documents</param>
        /// <param name="change">Change Event to preload the manager</param>
        public DocumentManager(JsonballClient client, Change change, bool tracing = false)
        {
            _client  = client;
            _tracing = tracing;

            // parse change
            foreach (var doc in change.Documents)
            {
                addDocument(doc);
            }
        }
コード例 #2
0
 public DocumentManager(JsonballClient client, bool tracing = false)
 {
     _client  = client;
     _tracing = tracing;
 }