Skip to content

Commit

Permalink
readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
Roc committed Dec 5, 2018
1 parent 372e51f commit 098eed1
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions src/Essensoft.AspNetCore.Payment.Alipay/AlipayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public class AlipayClient : IAlipayClient
private const string APP_AUTH_TOKEN = "app_auth_token";
private const string RETURN_URL = "return_url";

private ILogger _logger;
private IHttpClientFactory _clientFactory;
private IOptionsSnapshot<AlipayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IHttpClientFactory _clientFactory;
private readonly IOptionsSnapshot<AlipayOptions> _optionsSnapshotAccessor;

#region AlipayClient Constructors

Expand Down
4 changes: 2 additions & 2 deletions src/Essensoft.AspNetCore.Payment.Alipay/AlipayNotifyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ namespace Essensoft.AspNetCore.Payment.Alipay
{
public class AlipayNotifyClient : IAlipayNotifyClient
{
private ILogger _logger;
private IOptionsSnapshot<AlipayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IOptionsSnapshot<AlipayOptions> _optionsSnapshotAccessor;

#region AlipayNotifyClient Constructors

Expand Down
6 changes: 3 additions & 3 deletions src/Essensoft.AspNetCore.Payment.JDPay/JDPayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ namespace Essensoft.AspNetCore.Payment.JDPay
{
public class JDPayClient : IJDPayClient
{
private ILogger _logger;
private IHttpClientFactory _clientFactory;
private IOptionsSnapshot<JDPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IHttpClientFactory _clientFactory;
private readonly IOptionsSnapshot<JDPayOptions> _optionsSnapshotAccessor;

#region JDPayClient Constructors

Expand Down
4 changes: 2 additions & 2 deletions src/Essensoft.AspNetCore.Payment.JDPay/JDPayNotifyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ namespace Essensoft.AspNetCore.Payment.JDPay
{
public class JDPayNotifyClient : IJDPayNotifyClient
{
private ILogger _logger;
private IOptionsSnapshot<JDPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IOptionsSnapshot<JDPayOptions> _optionsSnapshotAccessor;

#region JDPayNotifyClient Constructors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public class LianLianPayClient : ILianLianPayClient
private const string TIME_STAMP = "time_stamp";
private const string SIGN = "sign";

private ILogger _logger;
private IHttpClientFactory _clientFactory;
private IOptionsSnapshot<LianLianPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IHttpClientFactory _clientFactory;
private readonly IOptionsSnapshot<LianLianPayOptions> _optionsSnapshotAccessor;

#region LianLianPayClient Constructors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ namespace Essensoft.AspNetCore.Payment.LianLianPay
{
public class LianLianPayNotifyClient : ILianLianPayNotifyClient
{
private ILogger _logger;
private IOptionsSnapshot<LianLianPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IOptionsSnapshot<LianLianPayOptions> _optionsSnapshotAccessor;

#region LianLianPayNotifyClient Constructors

Expand Down
6 changes: 3 additions & 3 deletions src/Essensoft.AspNetCore.Payment.QPay/QPayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class QPayClient : IQPayClient
private const string NONCE_STR = "nonce_str";
private const string SIGN = "sign";

private ILogger _logger;
private IHttpClientFactory _clientFactory;
private IOptionsSnapshot<QPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IHttpClientFactory _clientFactory;
private readonly IOptionsSnapshot<QPayOptions> _optionsSnapshotAccessor;

#region QPayClient Constructors

Expand Down
4 changes: 2 additions & 2 deletions src/Essensoft.AspNetCore.Payment.QPay/QPayNotifyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ namespace Essensoft.AspNetCore.Payment.QPay
{
public class QPayNotifyClient : IQPayNotifyClient
{
private ILogger _logger;
private IOptionsSnapshot<QPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IOptionsSnapshot<QPayOptions> _optionsSnapshotAccessor;

#region QPayNotifyClient Constructors

Expand Down
6 changes: 3 additions & 3 deletions src/Essensoft.AspNetCore.Payment.UnionPay/UnionPayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public class UnionPayClient : IUnionPayClient
private const string ENCRYPTCERTID = "encryptCertId";
private const string ACCNO = "accNo";

private ILogger _logger;
private IHttpClientFactory _clientFactory;
private IOptionsSnapshot<UnionPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IHttpClientFactory _clientFactory;
private readonly IOptionsSnapshot<UnionPayOptions> _optionsSnapshotAccessor;

#region UnionPayClient Constructors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace Essensoft.AspNetCore.Payment.UnionPay
{
public class UnionPayNotifyClient : IUnionPayNotifyClient
{
private ILogger _logger;
private IOptionsSnapshot<UnionPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IOptionsSnapshot<UnionPayOptions> _optionsSnapshotAccessor;

#region UnionPayNotifyClient Constructors

Expand Down
6 changes: 3 additions & 3 deletions src/Essensoft.AspNetCore.Payment.WeChatPay/WeChatPayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public class WeChatPayClient : IWeChatPayClient
private const string signType = "signType";
private const string paySign = "paySign";

private ILogger _logger;
private IHttpClientFactory _clientFactory;
private IOptionsSnapshot<WeChatPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IHttpClientFactory _clientFactory;
private readonly IOptionsSnapshot<WeChatPayOptions> _optionsSnapshotAccessor;

#region WeChatPayClient Constructors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay
{
public class WeChatPayNotifyClient : IWeChatPayNotifyClient
{
private ILogger _logger;
private IOptionsSnapshot<WeChatPayOptions> _optionsSnapshotAccessor;
private readonly ILogger _logger;
private readonly IOptionsSnapshot<WeChatPayOptions> _optionsSnapshotAccessor;

#region WeChatPayNotifyClient Constructors

Expand Down

0 comments on commit 098eed1

Please sign in to comment.