Skip to content

Commit

Permalink
Fixed client init
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Nesterov committed Apr 9, 2020
1 parent 8918729 commit 3379bdf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions client/MAVN.Service.SmartVouchers.Client/SmartVouchersClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ namespace MAVN.Service.SmartVouchers.Client
/// </summary>
public class SmartVouchersClient : ISmartVouchersClient
{
// Note: Add similar Api properties for each new service controller
/// <summary>Voucher campaigns Api interface</summary>
public IVoucherCampaignsApi CampaignsApi { get; }

/// <summary>Inerface to SmartVouchers Api.</summary>
public IVoucherCampaignsApi Api { get; private set; }
/// <summary>Vouchers Api interface</summary>
public ISmartVouchersApi VouchersApi { get; }

/// <summary>C-tor</summary>
public SmartVouchersClient(IHttpClientGenerator httpClientGenerator)
{
Api = httpClientGenerator.Generate<IVoucherCampaignsApi>();
CampaignsApi = httpClientGenerator.Generate<IVoucherCampaignsApi>();
VouchersApi = httpClientGenerator.Generate<ISmartVouchersApi>();
}
}
}

0 comments on commit 3379bdf

Please sign in to comment.