protected ApiWrapper(ITokenProvider tokenProvider, INcsSettings ncsSettings) { _tokenProvider = tokenProvider; _baseUrl = new Uri(ncsSettings.ServerAddress); _settings = new Lazy <JsonSerializerSettings>(() => { var settings = new JsonSerializerSettings(); UpdateJsonSerializerSettings(settings); return(settings); }); }
/// <summary> /// Creates a new instance of the <see cref="ShipAssociationClient"/> class. /// </summary> /// <param name="tokenProvider">Provides the user's JWT token when requested.</param> /// <param name="ncsSettings">The NCS settings to use for this client.</param> public ShipAssociationClient(ITokenProvider tokenProvider, INcsSettings ncsSettings) : base(tokenProvider, ncsSettings) { }
/// <summary> /// Creates a new instance of the <see cref="AccountMembershipClient"/> class. /// </summary> /// <param name="tokenProvider">Provides the user's JWT token when requested.</param> /// <param name="ncsSettings">The NCS settings to use for this client.</param> public AccountMembershipClient(ITokenProvider tokenProvider, INcsSettings ncsSettings) : base(tokenProvider, ncsSettings) { }
/// <summary> /// Creates a new instance of the <see cref="ShipClient"/> class. /// </summary> /// <param name="tokenProvider">Provides the user's JWT token when requested.</param> /// <param name="ncsSettings">The NCS settings to use for this client.</param> public ShipClient(ITokenProvider tokenProvider, INcsSettings ncsSettings) : base(tokenProvider, ncsSettings) { }