/// <summary>
 /// Asynchronously creates a new saved search.
 /// </summary>
 /// <param name="name">
 /// Name of the saved search to be created.
 /// </param>
 /// <param name="attributes">
 /// Attributes of the saved search to be created.
 /// </param>
 /// <param name="dispatchArgs">
 /// Dispatch arguments for the saved search to be created.
 /// </param>
 /// <param name="templateArgs">
 /// Template arguments for the saved search to be created.
 /// </param>
 /// <returns>
 /// An object representing the saved search that was created.
 /// </returns>
 /// <remarks>
 /// This method uses the <a href="http://goo.gl/EPQypw">POST 
 /// saved/searches</a> endpoint to create the <see cref="SavedSearch"/>
 /// object it returns.
 /// </remarks>
 public async Task<SavedSearch> CreateSavedSearchAsync(string name, SavedSearchAttributes attributes,
     SavedSearchDispatchArgs dispatchArgs = null, SavedSearchTemplateArgs templateArgs = null)
 {
     var resource = new SavedSearch(this.Context, this.Namespace, name);
     await resource.CreateAsync(attributes, dispatchArgs, templateArgs);
     return resource;
 }