IAbpStartupConfiguration.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. using System;
  2. using System.Collections.Generic;
  3. using Abp.Application.Features;
  4. using Abp.Auditing;
  5. using Abp.BackgroundJobs;
  6. using Abp.Dependency;
  7. using Abp.Domain.Uow;
  8. using Abp.EntityHistory;
  9. using Abp.Events.Bus;
  10. using Abp.Notifications;
  11. using Abp.Resources.Embedded;
  12. using Abp.Runtime.Caching.Configuration;
  13. namespace Abp.Configuration.Startup
  14. {
  15. /// <summary>
  16. /// Used to configure ABP and modules on startup.
  17. /// </summary>
  18. public interface IAbpStartupConfiguration : IDictionaryBasedConfig
  19. {
  20. /// <summary>
  21. /// Gets the IOC manager associated with this configuration.
  22. /// </summary>
  23. IIocManager IocManager { get; }
  24. /// <summary>
  25. /// Used to set localization configuration.
  26. /// </summary>
  27. ILocalizationConfiguration Localization { get; }
  28. /// <summary>
  29. /// Used to configure navigation.
  30. /// </summary>
  31. INavigationConfiguration Navigation { get; }
  32. /// <summary>
  33. /// Used to configure <see cref="IEventBus"/>.
  34. /// </summary>
  35. IEventBusConfiguration EventBus { get; }
  36. /// <summary>
  37. /// Used to configure auditing.
  38. /// </summary>
  39. IAuditingConfiguration Auditing { get; }
  40. /// <summary>
  41. /// Used to configure caching.
  42. /// </summary>
  43. ICachingConfiguration Caching { get; }
  44. /// <summary>
  45. /// Used to configure multi-tenancy.
  46. /// </summary>
  47. IMultiTenancyConfig MultiTenancy { get; }
  48. /// <summary>
  49. /// Used to configure authorization.
  50. /// </summary>
  51. IAuthorizationConfiguration Authorization { get; }
  52. /// <summary>
  53. /// Used to configure validation.
  54. /// </summary>
  55. IValidationConfiguration Validation { get; }
  56. /// <summary>
  57. /// Used to configure settings.
  58. /// </summary>
  59. ISettingsConfiguration Settings { get; }
  60. /// <summary>
  61. /// Gets/sets default connection string used by ORM module.
  62. /// It can be name of a connection string in application's config file or can be full connection string.
  63. /// </summary>
  64. string DefaultNameOrConnectionString { get; set; }
  65. /// <summary>
  66. /// Used to configure modules.
  67. /// Modules can write extension methods to <see cref="IModuleConfigurations"/> to add module specific configurations.
  68. /// </summary>
  69. IModuleConfigurations Modules { get; }
  70. /// <summary>
  71. /// Used to configure unit of work defaults.
  72. /// </summary>
  73. IUnitOfWorkDefaultOptions UnitOfWork { get; }
  74. /// <summary>
  75. /// Used to configure features.
  76. /// </summary>
  77. IFeatureConfiguration Features { get; }
  78. /// <summary>
  79. /// Used to configure background job system.
  80. /// </summary>
  81. IBackgroundJobConfiguration BackgroundJobs { get; }
  82. /// <summary>
  83. /// Used to configure notification system.
  84. /// </summary>
  85. INotificationConfiguration Notifications { get; }
  86. /// <summary>
  87. /// Used to configure embedded resources.
  88. /// </summary>
  89. IEmbeddedResourcesConfiguration EmbeddedResources { get; }
  90. /// <summary>
  91. /// Used to configure entity history.
  92. /// </summary>
  93. IEntityHistoryConfiguration EntityHistory { get; }
  94. /// <summary>
  95. /// Used to replace a service type.
  96. /// Given <see cref="replaceAction"/> should register an implementation for the <see cref="type"/>.
  97. /// </summary>
  98. /// <param name="type">The type to be replaced.</param>
  99. /// <param name="replaceAction">Replace action.</param>
  100. void ReplaceService(Type type, Action replaceAction);
  101. /// <summary>
  102. /// Gets a configuration object.
  103. /// </summary>
  104. T Get<T>();
  105. IList<ICustomConfigProvider> CustomConfigProviders { get; }
  106. Dictionary<string, object> GetCustomConfig();
  107. }
  108. }