コード例 #1
0
            public void Complete(string queryText, int resultsCount = -1, Exception exception = null, NameValueCollection customHeaders = null, int?maxExecutionTime = null)
            {
                var args = new OperationCompletedEventArgs
                {
                    QueryText         = queryText,
                    ResourcesReturned = resultsCount,
                    TimeTaken         = stopwatch.Elapsed,
                    Exception         = exception,
                    CustomHeaders     = customHeaders,
                    MaxExecutionTime  = maxExecutionTime
                };

                owner.OnOperationCompleted(args);
            }
コード例 #2
0
            public void Complete(string queryText, string lastBookmark, int resultsCount = -1, Exception exception = null, NameValueCollection customHeaders = null, int?maxExecutionTime = null, string identifier = null, IEnumerable <string> bookmarks = null)
            {
                var args = new OperationCompletedEventArgs
                {
                    LastBookmark      = lastBookmark,
                    QueryText         = queryText,
                    ResourcesReturned = resultsCount,
                    TimeTaken         = stopwatch.Elapsed,
                    Exception         = exception,
                    CustomHeaders     = customHeaders,
                    MaxExecutionTime  = maxExecutionTime,
                    Identifier        = identifier,
                    BookmarksUsed     = bookmarks
                };

                owner.OnOperationCompleted(args);
            }