Skip to content

Commit fe257c6

Browse files
committed
Abstract container. Right now the autofac implementation is still part of the main dll. Next step will be to move out to external dll.
1 parent ce560d1 commit fe257c6

12 files changed

Lines changed: 576 additions & 36 deletions
Lines changed: 323 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,323 @@
1+
<Configuration>
2+
<CodeStyleSettings>
3+
<ExternalPath IsNull="False" />
4+
<Sharing>SOLUTION</Sharing>
5+
<CSS>
6+
<FormatSettings />
7+
<Naming2 />
8+
</CSS>
9+
<CSharp>
10+
<FormatSettings>
11+
<ALIGN_MULTILINE_ARRAY_AND_OBJECT_INITIALIZER>False</ALIGN_MULTILINE_ARRAY_AND_OBJECT_INITIALIZER>
12+
<ANONYMOUS_METHOD_DECLARATION_BRACES>END_OF_LINE</ANONYMOUS_METHOD_DECLARATION_BRACES>
13+
<CASE_BLOCK_BRACES>END_OF_LINE</CASE_BLOCK_BRACES>
14+
<EMPTY_BLOCK_STYLE>TOGETHER_SAME_LINE</EMPTY_BLOCK_STYLE>
15+
<EXPLICIT_INTERNAL_MODIFIER>False</EXPLICIT_INTERNAL_MODIFIER>
16+
<EXPLICIT_PRIVATE_MODIFIER>False</EXPLICIT_PRIVATE_MODIFIER>
17+
<FORCE_IFELSE_BRACES_STYLE>ALWAYS_ADD</FORCE_IFELSE_BRACES_STYLE>
18+
<INDENT_ANONYMOUS_METHOD_BLOCK>False</INDENT_ANONYMOUS_METHOD_BLOCK>
19+
<INDENT_EMBRACED_INITIALIZER_BLOCK>False</INDENT_EMBRACED_INITIALIZER_BLOCK>
20+
<INITIALIZER_BRACES>END_OF_LINE</INITIALIZER_BRACES>
21+
<INVOCABLE_DECLARATION_BRACES>END_OF_LINE</INVOCABLE_DECLARATION_BRACES>
22+
<MODIFIERS_ORDER IsNull="False">
23+
<Item>public</Item>
24+
<Item>protected</Item>
25+
<Item>internal</Item>
26+
<Item>private</Item>
27+
<Item>new</Item>
28+
<Item>abstract</Item>
29+
<Item>virtual</Item>
30+
<Item>override</Item>
31+
<Item>sealed</Item>
32+
<Item>static</Item>
33+
<Item>readonly</Item>
34+
<Item>extern</Item>
35+
<Item>unsafe</Item>
36+
<Item>volatile</Item>
37+
</MODIFIERS_ORDER>
38+
<OTHER_BRACES>END_OF_LINE</OTHER_BRACES>
39+
<PLACE_ABSTRACT_ACCESSORHOLDER_ON_SINGLE_LINE>False</PLACE_ABSTRACT_ACCESSORHOLDER_ON_SINGLE_LINE>
40+
<PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE>False</PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE>
41+
<PLACE_SIMPLE_ACCESSOR_ON_SINGLE_LINE>False</PLACE_SIMPLE_ACCESSOR_ON_SINGLE_LINE>
42+
<SPACE_BEFORE_TYPEOF_PARENTHESES>False</SPACE_BEFORE_TYPEOF_PARENTHESES>
43+
<TYPE_DECLARATION_BRACES>END_OF_LINE</TYPE_DECLARATION_BRACES>
44+
<WRAP_LIMIT>200</WRAP_LIMIT>
45+
</FormatSettings>
46+
<UsingsSettings />
47+
<Naming2>
48+
<EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
49+
<EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
50+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" />
51+
<PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" />
52+
<PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" />
53+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" />
54+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" />
55+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants" />
56+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" />
57+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" />
58+
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateInstanceFields" />
59+
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
60+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" />
61+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateConstants" />
62+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
63+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateStaticReadonly" />
64+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" />
65+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
66+
</Naming2>
67+
<CustomMemberReorderingPatterns><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
68+
69+
<!--
70+
I. Overall
71+
72+
I.1 Each pattern can have <Match>....</Match> element. For the given type declaration, the pattern with the match, evaluated to 'true' with the largest weight, will be used
73+
I.2 Each pattern consists of the sequence of <Entry>...</Entry> elements. Type member declarations are distributed between entries
74+
I.3 If pattern has RemoveAllRegions="true" attribute, then all regions will be cleared prior to reordering. Otherwise, only auto-generated regions will be cleared
75+
I.4 The contents of each entry is sorted by given keys (First key is primary, next key is secondary, etc). Then the declarations are grouped and en-regioned by given property
76+
77+
II. Available match operands
78+
79+
Each operand may have Weight="..." attribute. This weight will be added to the match weight if the operand is evaluated to 'true'.
80+
The default weight is 1
81+
82+
II.1 Boolean functions:
83+
II.1.1 <And>....</And>
84+
II.1.2 <Or>....</Or>
85+
II.1.3 <Not>....</Not>
86+
87+
II.2 Operands
88+
II.2.1 <Kind Is="..."/>. Kinds are: class, struct, interface, enum, delegate, type, constructor, destructor, property, indexer, method, operator, field, constant, event, member
89+
II.2.2 <Name Is="..." [IgnoreCase="true/false"] />. The 'Is' attribute contains regular expression
90+
II.2.3 <HasAttribute CLRName="..." [Inherit="true/false"] />. The 'CLRName' attribute contains regular expression
91+
II.2.4 <Access Is="..."/>. The 'Is' values are: public, protected, internal, protected internal, private
92+
II.2.5 <Static/>
93+
II.2.6 <Abstract/>
94+
II.2.7 <Virtual/>
95+
II.2.8 <Override/>
96+
II.2.9 <Sealed/>
97+
II.2.10 <Readonly/>
98+
II.2.11 <ImplementsInterface CLRName="..."/>. The 'CLRName' attribute contains regular expression
99+
II.2.12 <HandlesEvent />
100+
-->
101+
102+
<Patterns xmlns="urn:shemas-jetbrains-com:member-reordering-patterns">
103+
104+
<!--Do not reorder COM interfaces and structs marked by StructLayout attribute-->
105+
<Pattern>
106+
<Match>
107+
<Or Weight="100">
108+
<And>
109+
<Kind Is="interface"/>
110+
<Or>
111+
<HasAttribute CLRName="System.Runtime.InteropServices.InterfaceTypeAttribute"/>
112+
<HasAttribute CLRName="System.Runtime.InteropServices.ComImport"/>
113+
</Or>
114+
</And>
115+
<HasAttribute CLRName="System.Runtime.InteropServices.StructLayoutAttribute"/>
116+
</Or>
117+
</Match>
118+
</Pattern>
119+
120+
<!--Special formatting of NUnit test fixture-->
121+
<Pattern RemoveAllRegions="true">
122+
<Match>
123+
<And Weight="100">
124+
<Kind Is="class"/>
125+
<HasAttribute CLRName="NUnit.Framework.TestFixtureAttribute" Inherit="true"/>
126+
</And>
127+
</Match>
128+
129+
<!--Setup/Teardow-->
130+
<Entry>
131+
<Match>
132+
<And>
133+
<Kind Is="method"/>
134+
<Or>
135+
<HasAttribute CLRName="NUnit.Framework.SetUpAttribute" Inherit="true"/>
136+
<HasAttribute CLRName="NUnit.Framework.TearDownAttribute" Inherit="true"/>
137+
<HasAttribute CLRName="NUnit.Framework.FixtureSetUpAttribute" Inherit="true"/>
138+
<HasAttribute CLRName="NUnit.Framework.FixtureTearDownAttribute" Inherit="true"/>
139+
</Or>
140+
</And>
141+
</Match>
142+
<Group Region="Setup/Teardown"/>
143+
</Entry>
144+
145+
<!--All other members-->
146+
<Entry/>
147+
148+
<!--Test methods-->
149+
<Entry>
150+
<Match>
151+
<And Weight="100">
152+
<Kind Is="method"/>
153+
<HasAttribute CLRName="NUnit.Framework.TestAttribute" Inherit="false"/>
154+
</And>
155+
</Match>
156+
<Sort>
157+
<Name/>
158+
</Sort>
159+
</Entry>
160+
</Pattern>
161+
162+
<!--Default pattern-->
163+
<Pattern>
164+
165+
<!--public delegate-->
166+
<Entry>
167+
<Match>
168+
<And Weight="100">
169+
<Access Is="public"/>
170+
<Kind Is="delegate"/>
171+
</And>
172+
</Match>
173+
<Sort>
174+
<Name/>
175+
</Sort>
176+
<Group Region="Delegates"/>
177+
</Entry>
178+
179+
<!--public enum-->
180+
<Entry>
181+
<Match>
182+
<And Weight="100">
183+
<Access Is="public"/>
184+
<Kind Is="enum"/>
185+
</And>
186+
</Match>
187+
<Sort>
188+
<Name/>
189+
</Sort>
190+
<Group>
191+
<Name Region="${Name} enum"/>
192+
</Group>
193+
</Entry>
194+
195+
<!--static fields and constants-->
196+
<Entry>
197+
<Match>
198+
<Or>
199+
<Kind Is="constant"/>
200+
<And>
201+
<Kind Is="field"/>
202+
<Static/>
203+
</And>
204+
</Or>
205+
</Match>
206+
<Sort>
207+
<Kind Order="constant field"/>
208+
</Sort>
209+
</Entry>
210+
211+
<!--instance fields-->
212+
<Entry>
213+
<Match>
214+
<And>
215+
<Kind Is="field"/>
216+
<Not>
217+
<Static/>
218+
</Not>
219+
</And>
220+
</Match>
221+
<Sort>
222+
<Readonly/>
223+
<Name/>
224+
</Sort>
225+
</Entry>
226+
227+
<!--Constructors. Place static one first-->
228+
<Entry>
229+
<Match>
230+
<Kind Is="constructor"/>
231+
</Match>
232+
<Sort>
233+
<Static/>
234+
</Sort>
235+
</Entry>
236+
237+
<!--properties, indexers-->
238+
<Entry>
239+
<Match>
240+
<Or>
241+
<Kind Is="property"/>
242+
<Kind Is="indexer"/>
243+
</Or>
244+
</Match>
245+
</Entry>
246+
247+
<!--interface implementations-->
248+
<Entry>
249+
<Match>
250+
<And Weight="100">
251+
<Kind Is="member"/>
252+
<ImplementsInterface/>
253+
</And>
254+
</Match>
255+
<Sort>
256+
<ImplementsInterface Immediate="true"/>
257+
</Sort>
258+
</Entry>
259+
260+
<!--all other members-->
261+
<Entry/>
262+
263+
<!--nested types-->
264+
<Entry>
265+
<Match>
266+
<Kind Is="type"/>
267+
</Match>
268+
<Sort>
269+
<Name/>
270+
</Sort>
271+
</Entry>
272+
</Pattern>
273+
274+
</Patterns>
275+
]]></CustomMemberReorderingPatterns>
276+
</CSharp>
277+
<HTML>
278+
<FormatSettings />
279+
</HTML>
280+
<JavaScript>
281+
<FormatSettings />
282+
<Naming2 />
283+
</JavaScript>
284+
<VB>
285+
<FormatSettings />
286+
<ImportsSettings />
287+
<Naming2>
288+
<EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
289+
<EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
290+
</Naming2>
291+
</VB>
292+
<Web>
293+
<Naming2 />
294+
</Web>
295+
<XML>
296+
<FormatSettings />
297+
</XML>
298+
<Xaml>
299+
<Naming2 />
300+
</Xaml>
301+
<GenerateMemberBody />
302+
<Naming2>
303+
<EventHandlerPatternLong>$object$_On$event$</EventHandlerPatternLong>
304+
<EventHandlerPatternShort>$event$Handler</EventHandlerPatternShort>
305+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="MethodPropertyEvent" />
306+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="TypesAndNamespaces" />
307+
<PredefinedRule Inspect="True" Prefix="I" Suffix="" Style="AaBb" ElementKind="Interfaces" />
308+
<PredefinedRule Inspect="True" Prefix="T" Suffix="" Style="AaBb" ElementKind="TypeParameters" />
309+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Locals" />
310+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="LocalConstants" />
311+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" />
312+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PublicFields" />
313+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateInstanceFields" />
314+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
315+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" />
316+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateConstants" />
317+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
318+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateStaticReadonly" />
319+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" />
320+
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
321+
</Naming2>
322+
</CodeStyleSettings>
323+
</Configuration>

0 commit comments

Comments
 (0)