/// <summary> /// Creates the doku wiki client. /// </summary> /// <param name="account">The account to use for communication.</param> /// <returns>An initialized instance of <see cref="IDokuWikiClient"/> associated with the given <see cref="WikiAccount"/>.</returns> /// <exception cref="ArgumentNullException">Is thrown when <paramref name="account"/> is a <see langword="null"/> reference.</exception> public static IDokuWikiClient CreateDokuWikiClient(WikiAccount account) { if (account == null) { throw new ArgumentNullException("account"); } DokuWikiClient client = new DokuWikiClient(); client.InitializeDokuWikiClient(account); return client; }
/// <summary> /// Creates the doku wiki client. /// </summary> /// <param name="account">The account to use for communication.</param> /// <returns>An initialized instance of <see cref="IDokuWikiClient"/> associated with the given <see cref="WikiAccount"/>.</returns> /// <exception cref="ArgumentNullException">Is thrown when <paramref name="account"/> is a <see langword="null"/> reference.</exception> public static IDokuWikiClient CreateDokuWikiClient(WikiAccount account) { if (account == null) { throw new ArgumentNullException("account"); } DokuWikiClient client = new DokuWikiClient(); client.InitializeDokuWikiClient(account); return(client); }