fix-messages: IDE0044
This commit is contained in:
parent
29ec562a78
commit
d866eccade
@ -277,7 +277,7 @@ namespace ASC.Core.Billing
|
||||
}
|
||||
}
|
||||
|
||||
private static DateTime _date = DateTime.MinValue;
|
||||
private static readonly DateTime _date = DateTime.MinValue;
|
||||
|
||||
public DateTime VersionReleaseDate
|
||||
{
|
||||
|
@ -124,7 +124,7 @@ namespace ASC.Core
|
||||
internal IQuotaService QuotaService { get; set; }
|
||||
internal ITariffService TariffService { get; set; }
|
||||
|
||||
private static List<string> thisCompAddresses = new List<string>();
|
||||
private static readonly List<string> thisCompAddresses = new List<string>();
|
||||
|
||||
internal IHttpContextAccessor HttpContextAccessor { get; set; }
|
||||
internal CoreBaseSettings CoreBaseSettings { get; set; }
|
||||
|
@ -32,8 +32,8 @@ namespace ASC.Core.Notify
|
||||
{
|
||||
public class NotifyServiceClient : INotifyService
|
||||
{
|
||||
private ICacheNotify<NotifyMessage> СacheNotify;
|
||||
private ICacheNotify<NotifyInvoke> NotifyInvoke;
|
||||
private readonly ICacheNotify<NotifyMessage> СacheNotify;
|
||||
private readonly ICacheNotify<NotifyInvoke> NotifyInvoke;
|
||||
public NotifyServiceClient(ICacheNotify<NotifyMessage> cacheNotify, ICacheNotify<NotifyInvoke> notifyInvoke)
|
||||
{
|
||||
СacheNotify = cacheNotify;
|
||||
|
@ -39,7 +39,7 @@ namespace ASC.Core.Notify
|
||||
public abstract class NotifySource : INotifySource
|
||||
{
|
||||
private readonly object syncRoot = new object();
|
||||
private bool initialized;
|
||||
private readonly bool initialized;
|
||||
|
||||
private readonly IDictionary<CultureInfo, IActionProvider> actions = new Dictionary<CultureInfo, IActionProvider>();
|
||||
|
||||
|
@ -37,7 +37,7 @@ namespace ASC.Core.Notify
|
||||
{
|
||||
class TelegramSenderSink : Sink
|
||||
{
|
||||
private string senderName = Configuration.Constants.NotifyTelegramSenderSysName;
|
||||
private readonly string senderName = Configuration.Constants.NotifyTelegramSenderSysName;
|
||||
private readonly INotifySender sender;
|
||||
private readonly IServiceProvider serviceProvider;
|
||||
|
||||
|
@ -37,7 +37,7 @@ namespace ASC.Core.Common.Tests
|
||||
public class ClientPaymentManagerTest
|
||||
{
|
||||
private readonly PaymentManager paymentManager = new PaymentManager(null, null, null);
|
||||
private IServiceProvider serviceProvider;
|
||||
private readonly IServiceProvider serviceProvider;
|
||||
|
||||
[Test]
|
||||
public void ActivateCuponTest()
|
||||
|
@ -42,7 +42,7 @@ namespace ASC.Core.Common.Tests
|
||||
class TopSubscriptionProviderTest
|
||||
{
|
||||
private TopSubscriptionProvider subProvider;
|
||||
private RecipientProviderImpl recProvider;
|
||||
private readonly RecipientProviderImpl recProvider;
|
||||
private Tenants.Tenant tenant;
|
||||
private string sourceId;
|
||||
private string actionId;
|
||||
@ -54,7 +54,7 @@ namespace ASC.Core.Common.Tests
|
||||
private IRecipient testRec;
|
||||
private IRecipient testRec2;
|
||||
private NotifyAction nAction;
|
||||
private IServiceProvider serviceProvider;
|
||||
private readonly IServiceProvider serviceProvider;
|
||||
|
||||
[OneTimeSetUp]
|
||||
public void CreateProviders()
|
||||
|
@ -58,7 +58,7 @@ namespace ASC.Web.Core.Users
|
||||
|
||||
public class DisplayUserSettingsHelper
|
||||
{
|
||||
private string RemovedProfileName;
|
||||
private readonly string RemovedProfileName;
|
||||
public DisplayUserSettingsHelper(UserManager userManager, UserFormatter userFormatter, IConfiguration configuration)
|
||||
{
|
||||
UserManager = userManager;
|
||||
|
@ -38,7 +38,7 @@ namespace ASC.Data.Backup
|
||||
private const string ROOT = "backup";
|
||||
private const string XML_NAME = "backupinfo.xml";
|
||||
|
||||
private IDictionary<string, IBackupProvider> providers;
|
||||
private readonly IDictionary<string, IBackupProvider> providers;
|
||||
private readonly string backup;
|
||||
private readonly string[] configs;
|
||||
|
||||
|
@ -40,8 +40,8 @@ namespace ASC.Data.Backup
|
||||
{
|
||||
public class FileBackupProvider : IBackupProvider
|
||||
{
|
||||
private IEnumerable<string> allowedModules;
|
||||
private ILog log;
|
||||
private readonly IEnumerable<string> allowedModules;
|
||||
private readonly ILog log;
|
||||
private StorageFactory StorageFactory { get; set; }
|
||||
private StorageFactoryConfig StorageFactoryConfig { get; set; }
|
||||
|
||||
|
@ -33,7 +33,7 @@ namespace ASC.Data.Backup.Tasks.Modules
|
||||
{
|
||||
public class CalendarModuleSpecifics : ModuleSpecificsBase
|
||||
{
|
||||
private Helpers helpers;
|
||||
private readonly Helpers helpers;
|
||||
|
||||
private readonly TableInfo[] _tables = new[]
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ namespace ASC.Data.Backup.Tasks.Modules
|
||||
};
|
||||
|
||||
private readonly RelationInfo[] _tableRelations;
|
||||
private Helpers helpers;
|
||||
private readonly Helpers helpers;
|
||||
public CoreModuleSpecifics(Helpers helpers) : base(helpers)
|
||||
{
|
||||
this.helpers = helpers;
|
||||
|
@ -114,8 +114,8 @@ namespace ASC.Data.Backup.Tasks.Modules
|
||||
new RelationInfo("files_thirdparty_account", "id", "files_thirdparty_id_mapping", "hash_id")
|
||||
};
|
||||
|
||||
private Helpers helpers;
|
||||
private ILog log;
|
||||
private readonly Helpers helpers;
|
||||
private readonly ILog log;
|
||||
public FilesModuleSpecifics(IOptionsMonitor<ILog> options, Helpers helpers) : base(helpers)
|
||||
{
|
||||
log = options.CurrentValue;
|
||||
|
@ -67,7 +67,7 @@ namespace ASC.Data.Backup.Tasks.Modules
|
||||
new Guid("{BF88953E-3C43-4850-A3FB-B1E43AD53A3E}") //talk product
|
||||
};
|
||||
|
||||
private InstanceCrypto instanceCrypto;
|
||||
private readonly InstanceCrypto instanceCrypto;
|
||||
public Helpers(InstanceCrypto instanceCrypto)
|
||||
{
|
||||
this.instanceCrypto = instanceCrypto;
|
||||
|
@ -43,8 +43,8 @@ namespace ASC.Data.Backup.Tasks.Modules
|
||||
{
|
||||
internal class MailModuleSpecifics : ModuleSpecificsBase
|
||||
{
|
||||
private ILog log;
|
||||
private Helpers helpers;
|
||||
private readonly ILog log;
|
||||
private readonly Helpers helpers;
|
||||
public MailModuleSpecifics(IOptionsMonitor<ILog> options, Helpers helpers) : base(helpers)
|
||||
{
|
||||
log = options.CurrentValue;
|
||||
|
@ -48,7 +48,7 @@ namespace ASC.Data.Backup.Tasks.Modules
|
||||
|
||||
public abstract IEnumerable<TableInfo> Tables { get; }
|
||||
public abstract IEnumerable<RelationInfo> TableRelations { get; }
|
||||
private Helpers helpers;
|
||||
private readonly Helpers helpers;
|
||||
public ModuleSpecificsBase(Helpers helpers)
|
||||
{
|
||||
this.helpers = helpers;
|
||||
|
@ -37,7 +37,7 @@ namespace ASC.Data.Backup.Tasks.Modules
|
||||
public class TenantsModuleSpecifics : ModuleSpecificsBase
|
||||
{
|
||||
|
||||
private CoreSettings coreSettings;
|
||||
private readonly CoreSettings coreSettings;
|
||||
public TenantsModuleSpecifics(CoreSettings coreSettings, Helpers helpers)
|
||||
: base(helpers)
|
||||
{
|
||||
|
@ -447,7 +447,7 @@ namespace ASC.ElasticSearch
|
||||
|
||||
public class FactoryIndexer
|
||||
{
|
||||
private static ICache cache = AscCache.Memory;
|
||||
private static readonly ICache cache = AscCache.Memory;
|
||||
|
||||
private FactoryIndexerHelper FactoryIndexerHelper { get; }
|
||||
internal ILifetimeScope Builder { get; set; }
|
||||
|
@ -45,7 +45,7 @@ namespace ASC.Web.Files.Helpers
|
||||
{
|
||||
public ILog Log { get; set; }
|
||||
|
||||
static string searchBookUrl = "https://worldcat.citation-api.com/query?search=",
|
||||
static readonly string searchBookUrl = "https://worldcat.citation-api.com/query?search=",
|
||||
searchJournalUrl = "https://crossref.citation-api.com/query?search=",
|
||||
searchWebSiteUrl = "https://web.citation-api.com/query?search=",
|
||||
easyBibStyles = "https://api.citation-api.com/2.1/rest/styles";
|
||||
|
@ -38,7 +38,7 @@ namespace ASC.Web.Files.Services.WCFService
|
||||
public class FileEntrySerializer
|
||||
{
|
||||
private static readonly IDictionary<Type, XmlObjectSerializer> serializers = new Dictionary<Type, XmlObjectSerializer>();
|
||||
private static bool oldMonoSerializer = false;
|
||||
private static readonly bool oldMonoSerializer = false;
|
||||
|
||||
|
||||
static FileEntrySerializer()
|
||||
|
Loading…
Reference in New Issue
Block a user