You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Extensions/Xtensive.Orm.Localization/NugetContent/ReadMe.md
+29-26
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ Examples of how to configure extension
115
115
116
116
Following examples show different ways to configure extension in configuration files of various types.
117
117
118
-
**Example #1** Confugure in App.config/Web.config
118
+
**Example #1** Confugure default culture in App.config/Web.config
119
119
120
120
```xml
121
121
<configuration>
@@ -132,20 +132,20 @@ Following examples show different ways to configure extension in configuration f
132
132
</configuration>
133
133
```
134
134
135
-
Such configuration is only compatible with System.Configuration.ConfigurationManager.
136
-
If project still supports such configurations then Localization configuration will be read automatically when it needed to be read.
135
+
Such configuration is usually read with ```System.Configuration.ConfigurationManager```.
136
+
If project still supports such configurations then Localization configuration will be read automatically when it needs to be read.
137
137
Sometimes a work-around is needed to read such configuration, for more read Example #2 and Example #3
138
138
139
139
140
140
**Example #2** Reading old-style configuration of an assembly in NET 5 and newer.
141
141
142
142
Due to new architecture without AppDomain (which among the other things was in charge of gathering configuration files of loaded assemblies
143
-
as it would be one configuration file) System.Configuration.ConfigurationManager now reads only configuration file of actual executable, loaded
143
+
as it would be one configuration file) ```System.Configuration.ConfigurationManager``` now reads only configuration file of actual executable, loaded
144
144
assemblies' configuration files stay unreachable by default, though there is need to read some data from them.
145
145
A great example is test projects which are usually get loaded by test runner executable, and the only configuration accessible in this case
146
146
is test runner one.
147
147
148
-
Extra step is required to read configuration files in such cases. ThankfullyConfigurationManager has methods to get access to assemblies' configurations.
148
+
Extra step is required to read configuration files in such cases. Thankfully, ```ConfigurationManager``` has methods to get access to assemblies' configuration files.
149
149
150
150
To get access to an assembly configuration file it should be opened explicitly by
151
151
@@ -165,18 +165,16 @@ The instance returned from ```OpenExeConfiguration``` provides access to section
@@ -198,17 +196,15 @@ any *.config file as ```System.Configuration.Configuration``` instance. For exam
198
196
```
199
197
200
198
After that, as in previous example, the instance can be passed to ```Load``` method of ```LocalizationConfiguration``` to read extension configuration
201
-
and later put it to ```DomainConfiguration.ExtensionConfigurations```.
202
-
After ```System.Configuration.Configuration``` instance is provided it is possible to pass it into Load method of different DataObjects.Net configurations,
203
-
including ```LocalizationConfiguration```. Then put localization configuration to ```DomainConfiguration.ExtensionConfigurations``` collection.
199
+
and later put it to ```DomainConfiguration.ExtensionConfigurations```
Copy file name to clipboardExpand all lines: Extensions/Xtensive.Orm.Reprocessing/NugetContent/ReadMe.md
+29-22
Original file line number
Diff line number
Diff line change
@@ -63,20 +63,20 @@ Following examples show different ways to configure extension in configuration f
63
63
</configuration>
64
64
```
65
65
66
-
Such configuration is only compatible with System.Configuration.ConfigurationManager.
67
-
If project still supports such configurations then Reprocessing configuration will be read automatically when it needed to be read.
66
+
Such configuration is usually read with ```System.Configuration.ConfigurationManager```.
67
+
If project still supports such configurations then Reprocessing configuration will be read automatically when it needs to be read.
68
68
Sometimes a work-around is needed to read such configuration, for more read Example #2 and Example #3
69
69
70
70
71
71
**Example #2** Reading old-style configuration of an assembly in NET 5 and newer.
72
72
73
73
Due to new architecture without AppDomain (which among the other things was in charge of gathering configuration files of loaded assemblies
74
-
as it would be one configuration file) System.Configuration.ConfigurationManager now reads only configuration file of actual executable, loaded
74
+
as it would be one configuration file) ```System.Configuration.ConfigurationManager``` now reads only configuration file of actual executable, loaded
75
75
assemblies' configuration files stay unreachable by default, though there is need to read some data from them.
76
76
A great example is test projects which are usually get loaded by test runner executable, and the only configuration accessible in this case
77
77
is test runner one.
78
78
79
-
Extra step is required to read configuration files in such cases. ThankfullyConfigurationManager has methods to get access to assemblies' configurations.
79
+
Extra step is required to read configuration files in such cases. Thankfully, ```ConfigurationManager``` has methods to get access to assemblies' configuration files.
80
80
81
81
To get access to an assembly configuration file it should be opened explicitly by
82
82
@@ -96,18 +96,16 @@ The instance returned from ```OpenExeConfiguration``` provides access to section
@@ -129,17 +127,15 @@ any *.config file as ```System.Configuration.Configuration``` instance. For exam
129
127
```
130
128
131
129
After that, as in previous example, the instance can be passed to ```Load``` method of ```ReprocessingConfiguration``` to read extension configuration
132
-
and later put it to ```DomainConfiguration.ExtensionConfigurations```.
133
-
After ```System.Configuration.Configuration``` instance is provided it is possible to pass it into Load method of different DataObjects.Net configurations,
134
-
including ```ReprocessingConfiguration```. Then put reprocessing configuration to ```DomainConfiguration.ExtensionConfigurations``` collection.
130
+
and later put it to ```DomainConfiguration.ExtensionConfigurations```
0 commit comments