private void Complete(EngineRequest request, ICommandReply reply, object result)
        {
            DateTime stop = DateTime.Now;
            TimeSpan duration = stop - _start;
            Newtonsoft.Json.Linq.JObject remainder;

            OpenDMS.Storage.Providers.CouchDB.Commands.GetDocumentReply r = (OpenDMS.Storage.Providers.CouchDB.Commands.GetDocumentReply)reply;

            OpenDMS.Storage.Providers.CouchDB.Transitions.Resource txResource = new OpenDMS.Storage.Providers.CouchDB.Transitions.Resource();
            OpenDMS.Storage.Data.Resource resource = txResource.Transition(r.Document, out remainder);

            WriteLine("GetResourceReadOnly.Complete - results received in " + duration.TotalMilliseconds.ToString() + "ms.");

            WriteLine("\tId: " + resource.ResourceId.ToString());
        }
Exemple #2
0
        private void Complete(EngineRequest request, ICommandReply reply, object result)
        {
            DateTime stop     = DateTime.Now;
            TimeSpan duration = stop - _start;

            Newtonsoft.Json.Linq.JObject remainder;

            OpenDMS.Storage.Providers.CouchDB.Commands.GetDocumentReply r = (OpenDMS.Storage.Providers.CouchDB.Commands.GetDocumentReply)reply;

            OpenDMS.Storage.Providers.CouchDB.Transitions.Resource txResource = new OpenDMS.Storage.Providers.CouchDB.Transitions.Resource();
            OpenDMS.Storage.Data.Resource resource = txResource.Transition(r.Document, out remainder);

            WriteLine("GetResourceReadOnly.Complete - results received in " + duration.TotalMilliseconds.ToString() + "ms.");

            WriteLine("\tId: " + resource.ResourceId.ToString());
        }