/// <summary> /// Initializes a new instance of the <see cref="AccessTokenClient"/> class. /// </summary> /// <param name="serverConfiguration">The client configuration.</param> /// <exception cref="System.ArgumentNullException">clientConfiguration</exception> public AccessTokenClient(OAuthServerConfiguration serverConfiguration) { Requires.NotNull(serverConfiguration, "clientConfiguration"); this.jsonDeserializer = new JsonDeserializer(); this.serverConfiguration = serverConfiguration; this.RestClient = new RestClient(serverConfiguration.BaseUrl.ToString()); }