Example #1
0
        public static Task <DesignDocument> GetDesignDocumentAsync(this IViewIndexManager viewManager, string designDocName, DesignDocumentNamespace @namespace, Action <GetDesignDocumentOptions> configureOptions)
        {
            var options = new GetDesignDocumentOptions();

            configureOptions(options);

            return(viewManager.GetDesignDocumentAsync(designDocName, @namespace, options));
        }
Example #2
0
 public static Task <DesignDocument> GetDesignDocumentAsync(this IViewIndexManager viewManager, string designDocName, DesignDocumentNamespace @namespace)
 {
     return(viewManager.GetDesignDocumentAsync(designDocName, @namespace, GetDesignDocumentOptions.Default));
 }