private void Complete(EngineRequest request, ICommandReply reply, object result) { DateTime stop = DateTime.Now; TimeSpan duration = stop - _start; OpenDMS.Storage.Providers.CouchDB.Commands.GetDocumentReply r = (OpenDMS.Storage.Providers.CouchDB.Commands.GetDocumentReply)reply; OpenDMS.Storage.Providers.CouchDB.Transitions.User txUser = new OpenDMS.Storage.Providers.CouchDB.Transitions.User(); OpenDMS.Storage.Security.User user = txUser.Transition(r.Document); WriteLine("GetUser.Complete - results received in " + duration.TotalMilliseconds.ToString() + "ms."); WriteLine("\tId: " + user.Id + ", Name: " + user.Username); }
private void Complete(EngineRequest request, ICommandReply reply, object result) { DateTime stop = DateTime.Now; TimeSpan duration = stop - _start; OpenDMS.Storage.Providers.CouchDB.Commands.GetDocumentReply r = (OpenDMS.Storage.Providers.CouchDB.Commands.GetDocumentReply)reply; OpenDMS.Storage.Providers.CouchDB.Transitions.User txUser = new OpenDMS.Storage.Providers.CouchDB.Transitions.User(); OpenDMS.Storage.Security.User user = txUser.Transition(r.Document); WriteLine("GetUser.Complete - results received in " + duration.TotalMilliseconds.ToString() + "ms."); WriteLine("\tId: " + user.Id + ", Name: " + user.Username); }