Auto status change to "Under Review"
@@ -0,0 +1,74 | |||||
|
1 | using System; | |||
|
2 | using System.Collections.Generic; | |||
|
3 | using System.Diagnostics; | |||
|
4 | using System.Linq; | |||
|
5 | using System.Text; | |||
|
6 | using System.Threading.Tasks; | |||
|
7 | ||||
|
8 | namespace Implab.Diagnostics { | |||
|
9 | public static class Trace<T> { | |||
|
10 | ||||
|
11 | readonly static LogChannel<TraceEvent> _channel = new LogChannel<TraceEvent>(typeof(T).Name); | |||
|
12 | ||||
|
13 | public static LogChannel<TraceEvent> Channel { | |||
|
14 | get { return _channel; } | |||
|
15 | } | |||
|
16 | ||||
|
17 | /// <summary> | |||
|
18 | /// Starts the logical operation nested to the current operation nested to the current one. | |||
|
19 | /// </summary> | |||
|
20 | [Conditional("TRACE")] | |||
|
21 | public static void StartLogicalOperation() { | |||
|
22 | TraceContext.Instance.StartLogicalOperation(); | |||
|
23 | ||||
|
24 | } | |||
|
25 | ||||
|
26 | /// <summary> | |||
|
27 | /// Starts the logical operation with the specified name, this name is usefull in logs. | |||
|
28 | /// </summary> | |||
|
29 | /// <param name="name">Name.</param> | |||
|
30 | [Conditional("TRACE")] | |||
|
31 | public static void StartLogicalOperation(string name) { | |||
|
32 | TraceContext.Instance.StartLogicalOperation(name); | |||
|
33 | } | |||
|
34 | ||||
|
35 | /// <summary> | |||
|
36 | /// Ends the logical operation and restores the previous one. | |||
|
37 | /// </summary> | |||
|
38 | [Conditional("TRACE")] | |||
|
39 | public static void EndLogicalOperation() { | |||
|
40 | var op = TraceContext.Instance.EndLogicalOperation(); | |||
|
41 | LogChannel<TraceEvent>.Default.LogEvent(new TraceEvent(op, TraceEventType.OperationCompleted, String.Format("-{0} : {1}ms", op.Name, op.Duration))); | |||
|
42 | } | |||
|
43 | ||||
|
44 | /// <summary> | |||
|
45 | /// Writes an informational message. | |||
|
46 | /// </summary> | |||
|
47 | /// <param name="format">Format.</param> | |||
|
48 | /// <param name="arguments">Arguments.</param> | |||
|
49 | [Conditional("TRACE")] | |||
|
50 | public static void Log(string format, params object[] arguments) { | |||
|
51 | Channel.LogEvent(TraceEvent.Create(TraceContext.Instance.CurrentOperation, TraceEventType.Information, format, arguments)); | |||
|
52 | } | |||
|
53 | ||||
|
54 | /// <summary> | |||
|
55 | /// Writes a warning message. | |||
|
56 | /// </summary> | |||
|
57 | /// <param name="format">Format.</param> | |||
|
58 | /// <param name="arguments">Arguments.</param> | |||
|
59 | [Conditional("TRACE")] | |||
|
60 | public static void Warn(string format, params object[] arguments) { | |||
|
61 | Channel.LogEvent(TraceEvent.Create(TraceContext.Instance.CurrentOperation, TraceEventType.Warning, format, arguments)); | |||
|
62 | } | |||
|
63 | ||||
|
64 | [Conditional("TRACE")] | |||
|
65 | public static void Error(string format, params object[] arguments) { | |||
|
66 | Channel.LogEvent(TraceEvent.Create(TraceContext.Instance.CurrentOperation, TraceEventType.Error, format, arguments)); | |||
|
67 | } | |||
|
68 | ||||
|
69 | [Conditional("TRACE")] | |||
|
70 | public static void Error(Exception err) { | |||
|
71 | Error("{0}", err); | |||
|
72 | } | |||
|
73 | } | |||
|
74 | } |
@@ -0,0 +1,10 | |||||
|
1 | using System; | |||
|
2 | ||||
|
3 | namespace Implab.Diagnostics { | |||
|
4 | /// <summary> | |||
|
5 | /// Used to mark class which uses <see cref="Trace{T}"/> class to trace it's events | |||
|
6 | /// </summary> | |||
|
7 | [AttributeUsage(AttributeTargets.Class)] | |||
|
8 | public class TraceSourceAttribute : Attribute { | |||
|
9 | } | |||
|
10 | } |
@@ -1,275 +1,277 | |||||
1 | ο»Ώ<?xml version="1.0" encoding="utf-8"?> |
|
1 | ο»Ώ<?xml version="1.0" encoding="utf-8"?> | |
2 | <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
2 | <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
3 | <PropertyGroup> |
|
3 | <PropertyGroup> | |
4 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|
4 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
5 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|
5 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
6 | <ProjectGuid>{F550F1F8-8746-4AD0-9614-855F4C4B7F05}</ProjectGuid> |
|
6 | <ProjectGuid>{F550F1F8-8746-4AD0-9614-855F4C4B7F05}</ProjectGuid> | |
7 | <OutputType>Library</OutputType> |
|
7 | <OutputType>Library</OutputType> | |
8 | <RootNamespace>Implab</RootNamespace> |
|
8 | <RootNamespace>Implab</RootNamespace> | |
9 | <AssemblyName>Implab</AssemblyName> |
|
9 | <AssemblyName>Implab</AssemblyName> | |
10 | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
|
10 | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |
11 | <ReleaseVersion>0.2</ReleaseVersion> |
|
11 | <ReleaseVersion>0.2</ReleaseVersion> | |
12 | <ProductVersion>8.0.30703</ProductVersion> |
|
12 | <ProductVersion>8.0.30703</ProductVersion> | |
13 | <SchemaVersion>2.0</SchemaVersion> |
|
13 | <SchemaVersion>2.0</SchemaVersion> | |
14 | </PropertyGroup> |
|
14 | </PropertyGroup> | |
15 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|
15 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
16 | <DebugSymbols>true</DebugSymbols> |
|
16 | <DebugSymbols>true</DebugSymbols> | |
17 | <DebugType>full</DebugType> |
|
17 | <DebugType>full</DebugType> | |
18 | <Optimize>false</Optimize> |
|
18 | <Optimize>false</Optimize> | |
19 | <OutputPath>bin\Debug</OutputPath> |
|
19 | <OutputPath>bin\Debug</OutputPath> | |
20 | <DefineConstants>TRACE;DEBUG;</DefineConstants> |
|
20 | <DefineConstants>TRACE;DEBUG;</DefineConstants> | |
21 | <ErrorReport>prompt</ErrorReport> |
|
21 | <ErrorReport>prompt</ErrorReport> | |
22 | <WarningLevel>4</WarningLevel> |
|
22 | <WarningLevel>4</WarningLevel> | |
23 | <ConsolePause>false</ConsolePause> |
|
23 | <ConsolePause>false</ConsolePause> | |
24 | <RunCodeAnalysis>true</RunCodeAnalysis> |
|
24 | <RunCodeAnalysis>true</RunCodeAnalysis> | |
25 | </PropertyGroup> |
|
25 | </PropertyGroup> | |
26 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|
26 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |
27 | <DebugType>full</DebugType> |
|
27 | <DebugType>full</DebugType> | |
28 | <Optimize>true</Optimize> |
|
28 | <Optimize>true</Optimize> | |
29 | <OutputPath>bin\Release</OutputPath> |
|
29 | <OutputPath>bin\Release</OutputPath> | |
30 | <ErrorReport>prompt</ErrorReport> |
|
30 | <ErrorReport>prompt</ErrorReport> | |
31 | <WarningLevel>4</WarningLevel> |
|
31 | <WarningLevel>4</WarningLevel> | |
32 | <ConsolePause>false</ConsolePause> |
|
32 | <ConsolePause>false</ConsolePause> | |
33 | </PropertyGroup> |
|
33 | </PropertyGroup> | |
34 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug 4.5|AnyCPU' "> |
|
34 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug 4.5|AnyCPU' "> | |
35 | <DebugSymbols>true</DebugSymbols> |
|
35 | <DebugSymbols>true</DebugSymbols> | |
36 | <DebugType>full</DebugType> |
|
36 | <DebugType>full</DebugType> | |
37 | <Optimize>false</Optimize> |
|
37 | <Optimize>false</Optimize> | |
38 | <OutputPath>bin\Debug</OutputPath> |
|
38 | <OutputPath>bin\Debug</OutputPath> | |
39 | <DefineConstants>TRACE;DEBUG;NET_4_5</DefineConstants> |
|
39 | <DefineConstants>TRACE;DEBUG;NET_4_5</DefineConstants> | |
40 | <ErrorReport>prompt</ErrorReport> |
|
40 | <ErrorReport>prompt</ErrorReport> | |
41 | <WarningLevel>4</WarningLevel> |
|
41 | <WarningLevel>4</WarningLevel> | |
42 | <RunCodeAnalysis>true</RunCodeAnalysis> |
|
42 | <RunCodeAnalysis>true</RunCodeAnalysis> | |
43 | <ConsolePause>false</ConsolePause> |
|
43 | <ConsolePause>false</ConsolePause> | |
44 | </PropertyGroup> |
|
44 | </PropertyGroup> | |
45 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release 4.5|AnyCPU' "> |
|
45 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release 4.5|AnyCPU' "> | |
46 | <Optimize>true</Optimize> |
|
46 | <Optimize>true</Optimize> | |
47 | <OutputPath>bin\Release</OutputPath> |
|
47 | <OutputPath>bin\Release</OutputPath> | |
48 | <ErrorReport>prompt</ErrorReport> |
|
48 | <ErrorReport>prompt</ErrorReport> | |
49 | <WarningLevel>4</WarningLevel> |
|
49 | <WarningLevel>4</WarningLevel> | |
50 | <ConsolePause>false</ConsolePause> |
|
50 | <ConsolePause>false</ConsolePause> | |
51 | <DefineConstants>NET_4_5</DefineConstants> |
|
51 | <DefineConstants>NET_4_5</DefineConstants> | |
52 | </PropertyGroup> |
|
52 | </PropertyGroup> | |
53 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugMono|AnyCPU' "> |
|
53 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugMono|AnyCPU' "> | |
54 | <DebugSymbols>true</DebugSymbols> |
|
54 | <DebugSymbols>true</DebugSymbols> | |
55 | <DebugType>full</DebugType> |
|
55 | <DebugType>full</DebugType> | |
56 | <Optimize>false</Optimize> |
|
56 | <Optimize>false</Optimize> | |
57 | <OutputPath>bin\Debug</OutputPath> |
|
57 | <OutputPath>bin\Debug</OutputPath> | |
58 | <DefineConstants>TRACE;DEBUG;NET_4_5;MONO</DefineConstants> |
|
58 | <DefineConstants>TRACE;DEBUG;NET_4_5;MONO</DefineConstants> | |
59 | <ErrorReport>prompt</ErrorReport> |
|
59 | <ErrorReport>prompt</ErrorReport> | |
60 | <WarningLevel>4</WarningLevel> |
|
60 | <WarningLevel>4</WarningLevel> | |
61 | <RunCodeAnalysis>true</RunCodeAnalysis> |
|
61 | <RunCodeAnalysis>true</RunCodeAnalysis> | |
62 | <ConsolePause>false</ConsolePause> |
|
62 | <ConsolePause>false</ConsolePause> | |
63 | </PropertyGroup> |
|
63 | </PropertyGroup> | |
64 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseMono|AnyCPU' "> |
|
64 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseMono|AnyCPU' "> | |
65 | <Optimize>true</Optimize> |
|
65 | <Optimize>true</Optimize> | |
66 | <OutputPath>bin\Release</OutputPath> |
|
66 | <OutputPath>bin\Release</OutputPath> | |
67 | <DefineConstants>NET_4_5;MONO;</DefineConstants> |
|
67 | <DefineConstants>NET_4_5;MONO;</DefineConstants> | |
68 | <ErrorReport>prompt</ErrorReport> |
|
68 | <ErrorReport>prompt</ErrorReport> | |
69 | <WarningLevel>4</WarningLevel> |
|
69 | <WarningLevel>4</WarningLevel> | |
70 | <ConsolePause>false</ConsolePause> |
|
70 | <ConsolePause>false</ConsolePause> | |
71 | </PropertyGroup> |
|
71 | </PropertyGroup> | |
72 | <ItemGroup> |
|
72 | <ItemGroup> | |
73 | <Reference Include="System" /> |
|
73 | <Reference Include="System" /> | |
74 | <Reference Include="System.Xml" /> |
|
74 | <Reference Include="System.Xml" /> | |
75 | <Reference Include="mscorlib" /> |
|
75 | <Reference Include="mscorlib" /> | |
76 | </ItemGroup> |
|
76 | </ItemGroup> | |
77 | <ItemGroup> |
|
77 | <ItemGroup> | |
78 | <Compile Include="Components\StateChangeEventArgs.cs" /> |
|
78 | <Compile Include="Components\StateChangeEventArgs.cs" /> | |
79 | <Compile Include="CustomEqualityComparer.cs" /> |
|
79 | <Compile Include="CustomEqualityComparer.cs" /> | |
80 | <Compile Include="Diagnostics\ConsoleTraceListener.cs" /> |
|
80 | <Compile Include="Diagnostics\ConsoleTraceListener.cs" /> | |
81 | <Compile Include="Diagnostics\LogChannel.cs" /> |
|
81 | <Compile Include="Diagnostics\LogChannel.cs" /> | |
82 | <Compile Include="Diagnostics\LogicalOperation.cs" /> |
|
82 | <Compile Include="Diagnostics\LogicalOperation.cs" /> | |
83 | <Compile Include="Diagnostics\TextFileListener.cs" /> |
|
83 | <Compile Include="Diagnostics\TextFileListener.cs" /> | |
|
84 | <Compile Include="Diagnostics\Trace.cs" /> | |||
84 | <Compile Include="Diagnostics\TraceLog.cs" /> |
|
85 | <Compile Include="Diagnostics\TraceLog.cs" /> | |
85 | <Compile Include="Diagnostics\TraceEvent.cs" /> |
|
86 | <Compile Include="Diagnostics\TraceEvent.cs" /> | |
86 | <Compile Include="Diagnostics\TraceEventType.cs" /> |
|
87 | <Compile Include="Diagnostics\TraceEventType.cs" /> | |
|
88 | <Compile Include="Diagnostics\TraceSourceAttribute.cs" /> | |||
87 | <Compile Include="ICancellable.cs" /> |
|
89 | <Compile Include="ICancellable.cs" /> | |
88 | <Compile Include="IProgressHandler.cs" /> |
|
90 | <Compile Include="IProgressHandler.cs" /> | |
89 | <Compile Include="IProgressNotifier.cs" /> |
|
91 | <Compile Include="IProgressNotifier.cs" /> | |
90 | <Compile Include="IPromiseT.cs" /> |
|
92 | <Compile Include="IPromiseT.cs" /> | |
91 | <Compile Include="IPromise.cs" /> |
|
93 | <Compile Include="IPromise.cs" /> | |
92 | <Compile Include="IServiceLocator.cs" /> |
|
94 | <Compile Include="IServiceLocator.cs" /> | |
93 | <Compile Include="ITaskController.cs" /> |
|
95 | <Compile Include="ITaskController.cs" /> | |
94 | <Compile Include="Parallels\DispatchPool.cs" /> |
|
96 | <Compile Include="Parallels\DispatchPool.cs" /> | |
95 | <Compile Include="Parallels\ArrayTraits.cs" /> |
|
97 | <Compile Include="Parallels\ArrayTraits.cs" /> | |
96 | <Compile Include="Parallels\MTQueue.cs" /> |
|
98 | <Compile Include="Parallels\MTQueue.cs" /> | |
97 | <Compile Include="Parallels\WorkerPool.cs" /> |
|
99 | <Compile Include="Parallels\WorkerPool.cs" /> | |
98 | <Compile Include="ProgressInitEventArgs.cs" /> |
|
100 | <Compile Include="ProgressInitEventArgs.cs" /> | |
99 | <Compile Include="Properties\AssemblyInfo.cs" /> |
|
101 | <Compile Include="Properties\AssemblyInfo.cs" /> | |
100 | <Compile Include="Parallels\AsyncPool.cs" /> |
|
102 | <Compile Include="Parallels\AsyncPool.cs" /> | |
101 | <Compile Include="Safe.cs" /> |
|
103 | <Compile Include="Safe.cs" /> | |
102 | <Compile Include="SyncContextPromise.cs" /> |
|
104 | <Compile Include="SyncContextPromise.cs" /> | |
103 | <Compile Include="ValueEventArgs.cs" /> |
|
105 | <Compile Include="ValueEventArgs.cs" /> | |
104 | <Compile Include="PromiseExtensions.cs" /> |
|
106 | <Compile Include="PromiseExtensions.cs" /> | |
105 | <Compile Include="SyncContextPromiseT.cs" /> |
|
107 | <Compile Include="SyncContextPromiseT.cs" /> | |
106 | <Compile Include="Diagnostics\OperationContext.cs" /> |
|
108 | <Compile Include="Diagnostics\OperationContext.cs" /> | |
107 | <Compile Include="Diagnostics\TraceContext.cs" /> |
|
109 | <Compile Include="Diagnostics\TraceContext.cs" /> | |
108 | <Compile Include="Diagnostics\LogEventArgs.cs" /> |
|
110 | <Compile Include="Diagnostics\LogEventArgs.cs" /> | |
109 | <Compile Include="Diagnostics\LogEventArgsT.cs" /> |
|
111 | <Compile Include="Diagnostics\LogEventArgsT.cs" /> | |
110 | <Compile Include="Diagnostics\Extensions.cs" /> |
|
112 | <Compile Include="Diagnostics\Extensions.cs" /> | |
111 | <Compile Include="PromiseEventType.cs" /> |
|
113 | <Compile Include="PromiseEventType.cs" /> | |
112 | <Compile Include="Parallels\AsyncQueue.cs" /> |
|
114 | <Compile Include="Parallels\AsyncQueue.cs" /> | |
113 | <Compile Include="PromiseT.cs" /> |
|
115 | <Compile Include="PromiseT.cs" /> | |
114 | <Compile Include="IDeferred.cs" /> |
|
116 | <Compile Include="IDeferred.cs" /> | |
115 | <Compile Include="IDeferredT.cs" /> |
|
117 | <Compile Include="IDeferredT.cs" /> | |
116 | <Compile Include="Promise.cs" /> |
|
118 | <Compile Include="Promise.cs" /> | |
117 | <Compile Include="PromiseTransientException.cs" /> |
|
119 | <Compile Include="PromiseTransientException.cs" /> | |
118 | <Compile Include="Parallels\Signal.cs" /> |
|
120 | <Compile Include="Parallels\Signal.cs" /> | |
119 | <Compile Include="Parallels\SharedLock.cs" /> |
|
121 | <Compile Include="Parallels\SharedLock.cs" /> | |
120 | <Compile Include="Diagnostics\ILogWriter.cs" /> |
|
122 | <Compile Include="Diagnostics\ILogWriter.cs" /> | |
121 | <Compile Include="Diagnostics\ListenerBase.cs" /> |
|
123 | <Compile Include="Diagnostics\ListenerBase.cs" /> | |
122 | <Compile Include="Parallels\BlockingQueue.cs" /> |
|
124 | <Compile Include="Parallels\BlockingQueue.cs" /> | |
123 | <Compile Include="AbstractEvent.cs" /> |
|
125 | <Compile Include="AbstractEvent.cs" /> | |
124 | <Compile Include="AbstractPromise.cs" /> |
|
126 | <Compile Include="AbstractPromise.cs" /> | |
125 | <Compile Include="AbstractPromiseT.cs" /> |
|
127 | <Compile Include="AbstractPromiseT.cs" /> | |
126 | <Compile Include="FuncTask.cs" /> |
|
128 | <Compile Include="FuncTask.cs" /> | |
127 | <Compile Include="FuncTaskBase.cs" /> |
|
129 | <Compile Include="FuncTaskBase.cs" /> | |
128 | <Compile Include="FuncTaskT.cs" /> |
|
130 | <Compile Include="FuncTaskT.cs" /> | |
129 | <Compile Include="ActionChainTaskBase.cs" /> |
|
131 | <Compile Include="ActionChainTaskBase.cs" /> | |
130 | <Compile Include="ActionChainTask.cs" /> |
|
132 | <Compile Include="ActionChainTask.cs" /> | |
131 | <Compile Include="ActionChainTaskT.cs" /> |
|
133 | <Compile Include="ActionChainTaskT.cs" /> | |
132 | <Compile Include="FuncChainTaskBase.cs" /> |
|
134 | <Compile Include="FuncChainTaskBase.cs" /> | |
133 | <Compile Include="FuncChainTask.cs" /> |
|
135 | <Compile Include="FuncChainTask.cs" /> | |
134 | <Compile Include="FuncChainTaskT.cs" /> |
|
136 | <Compile Include="FuncChainTaskT.cs" /> | |
135 | <Compile Include="ActionTaskBase.cs" /> |
|
137 | <Compile Include="ActionTaskBase.cs" /> | |
136 | <Compile Include="ActionTask.cs" /> |
|
138 | <Compile Include="ActionTask.cs" /> | |
137 | <Compile Include="ActionTaskT.cs" /> |
|
139 | <Compile Include="ActionTaskT.cs" /> | |
138 | <Compile Include="ICancellationToken.cs" /> |
|
140 | <Compile Include="ICancellationToken.cs" /> | |
139 | <Compile Include="SuccessPromise.cs" /> |
|
141 | <Compile Include="SuccessPromise.cs" /> | |
140 | <Compile Include="SuccessPromiseT.cs" /> |
|
142 | <Compile Include="SuccessPromiseT.cs" /> | |
141 | <Compile Include="PromiseAwaiterT.cs" /> |
|
143 | <Compile Include="PromiseAwaiterT.cs" /> | |
142 | <Compile Include="PromiseAwaiter.cs" /> |
|
144 | <Compile Include="PromiseAwaiter.cs" /> | |
143 | <Compile Include="Components\ComponentContainer.cs" /> |
|
145 | <Compile Include="Components\ComponentContainer.cs" /> | |
144 | <Compile Include="Components\Disposable.cs" /> |
|
146 | <Compile Include="Components\Disposable.cs" /> | |
145 | <Compile Include="Components\DisposablePool.cs" /> |
|
147 | <Compile Include="Components\DisposablePool.cs" /> | |
146 | <Compile Include="Components\ObjectPool.cs" /> |
|
148 | <Compile Include="Components\ObjectPool.cs" /> | |
147 | <Compile Include="Components\ServiceLocator.cs" /> |
|
149 | <Compile Include="Components\ServiceLocator.cs" /> | |
148 | <Compile Include="Components\IInitializable.cs" /> |
|
150 | <Compile Include="Components\IInitializable.cs" /> | |
149 | <Compile Include="TaskController.cs" /> |
|
151 | <Compile Include="TaskController.cs" /> | |
150 | <Compile Include="Components\App.cs" /> |
|
152 | <Compile Include="Components\App.cs" /> | |
151 | <Compile Include="Components\IRunnable.cs" /> |
|
153 | <Compile Include="Components\IRunnable.cs" /> | |
152 | <Compile Include="Components\ExecutionState.cs" /> |
|
154 | <Compile Include="Components\ExecutionState.cs" /> | |
153 | <Compile Include="Components\RunnableComponent.cs" /> |
|
155 | <Compile Include="Components\RunnableComponent.cs" /> | |
154 | <Compile Include="Components\IFactory.cs" /> |
|
156 | <Compile Include="Components\IFactory.cs" /> | |
155 | <Compile Include="Automaton\IAlphabet.cs" /> |
|
157 | <Compile Include="Automaton\IAlphabet.cs" /> | |
156 | <Compile Include="Automaton\ParserException.cs" /> |
|
158 | <Compile Include="Automaton\ParserException.cs" /> | |
157 | <Compile Include="Automaton\IndexedAlphabetBase.cs" /> |
|
159 | <Compile Include="Automaton\IndexedAlphabetBase.cs" /> | |
158 | <Compile Include="Automaton\IAlphabetBuilder.cs" /> |
|
160 | <Compile Include="Automaton\IAlphabetBuilder.cs" /> | |
159 | <Compile Include="Automaton\RegularExpressions\AltToken.cs" /> |
|
161 | <Compile Include="Automaton\RegularExpressions\AltToken.cs" /> | |
160 | <Compile Include="Automaton\RegularExpressions\BinaryToken.cs" /> |
|
162 | <Compile Include="Automaton\RegularExpressions\BinaryToken.cs" /> | |
161 | <Compile Include="Automaton\RegularExpressions\CatToken.cs" /> |
|
163 | <Compile Include="Automaton\RegularExpressions\CatToken.cs" /> | |
162 | <Compile Include="Automaton\RegularExpressions\StarToken.cs" /> |
|
164 | <Compile Include="Automaton\RegularExpressions\StarToken.cs" /> | |
163 | <Compile Include="Automaton\RegularExpressions\SymbolToken.cs" /> |
|
165 | <Compile Include="Automaton\RegularExpressions\SymbolToken.cs" /> | |
164 | <Compile Include="Automaton\RegularExpressions\EmptyToken.cs" /> |
|
166 | <Compile Include="Automaton\RegularExpressions\EmptyToken.cs" /> | |
165 | <Compile Include="Automaton\RegularExpressions\Token.cs" /> |
|
167 | <Compile Include="Automaton\RegularExpressions\Token.cs" /> | |
166 | <Compile Include="Automaton\RegularExpressions\IVisitor.cs" /> |
|
168 | <Compile Include="Automaton\RegularExpressions\IVisitor.cs" /> | |
167 | <Compile Include="Automaton\AutomatonTransition.cs" /> |
|
169 | <Compile Include="Automaton\AutomatonTransition.cs" /> | |
168 | <Compile Include="Formats\JSON\JSONElementContext.cs" /> |
|
170 | <Compile Include="Formats\JSON\JSONElementContext.cs" /> | |
169 | <Compile Include="Formats\JSON\JSONElementType.cs" /> |
|
171 | <Compile Include="Formats\JSON\JSONElementType.cs" /> | |
170 | <Compile Include="Formats\JSON\JSONGrammar.cs" /> |
|
172 | <Compile Include="Formats\JSON\JSONGrammar.cs" /> | |
171 | <Compile Include="Formats\JSON\JSONParser.cs" /> |
|
173 | <Compile Include="Formats\JSON\JSONParser.cs" /> | |
172 | <Compile Include="Formats\JSON\JSONScanner.cs" /> |
|
174 | <Compile Include="Formats\JSON\JSONScanner.cs" /> | |
173 | <Compile Include="Formats\JSON\JsonTokenType.cs" /> |
|
175 | <Compile Include="Formats\JSON\JsonTokenType.cs" /> | |
174 | <Compile Include="Formats\JSON\JSONWriter.cs" /> |
|
176 | <Compile Include="Formats\JSON\JSONWriter.cs" /> | |
175 | <Compile Include="Formats\JSON\JSONXmlReader.cs" /> |
|
177 | <Compile Include="Formats\JSON\JSONXmlReader.cs" /> | |
176 | <Compile Include="Formats\JSON\JSONXmlReaderOptions.cs" /> |
|
178 | <Compile Include="Formats\JSON\JSONXmlReaderOptions.cs" /> | |
177 | <Compile Include="Formats\JSON\StringTranslator.cs" /> |
|
179 | <Compile Include="Formats\JSON\StringTranslator.cs" /> | |
178 | <Compile Include="Automaton\MapAlphabet.cs" /> |
|
180 | <Compile Include="Automaton\MapAlphabet.cs" /> | |
179 | <Compile Include="Formats\CharAlphabet.cs" /> |
|
181 | <Compile Include="Formats\CharAlphabet.cs" /> | |
180 | <Compile Include="Formats\ByteAlphabet.cs" /> |
|
182 | <Compile Include="Formats\ByteAlphabet.cs" /> | |
181 | <Compile Include="Automaton\IDFATable.cs" /> |
|
183 | <Compile Include="Automaton\IDFATable.cs" /> | |
182 | <Compile Include="Automaton\IDFATableBuilder.cs" /> |
|
184 | <Compile Include="Automaton\IDFATableBuilder.cs" /> | |
183 | <Compile Include="Automaton\DFATable.cs" /> |
|
185 | <Compile Include="Automaton\DFATable.cs" /> | |
184 | <Compile Include="Automaton\RegularExpressions\RegularExpressionVisitor.cs" /> |
|
186 | <Compile Include="Automaton\RegularExpressions\RegularExpressionVisitor.cs" /> | |
185 | <Compile Include="Automaton\RegularExpressions\ITaggedDFABuilder.cs" /> |
|
187 | <Compile Include="Automaton\RegularExpressions\ITaggedDFABuilder.cs" /> | |
186 | <Compile Include="Formats\TextScanner.cs" /> |
|
188 | <Compile Include="Formats\TextScanner.cs" /> | |
187 | <Compile Include="Formats\StringScanner.cs" /> |
|
189 | <Compile Include="Formats\StringScanner.cs" /> | |
188 | <Compile Include="Formats\ReaderScanner.cs" /> |
|
190 | <Compile Include="Formats\ReaderScanner.cs" /> | |
189 | <Compile Include="Formats\ScannerContext.cs" /> |
|
191 | <Compile Include="Formats\ScannerContext.cs" /> | |
190 | <Compile Include="Formats\Grammar.cs" /> |
|
192 | <Compile Include="Formats\Grammar.cs" /> | |
191 | <Compile Include="Automaton\RegularExpressions\EndTokenT.cs" /> |
|
193 | <Compile Include="Automaton\RegularExpressions\EndTokenT.cs" /> | |
192 | <Compile Include="Automaton\RegularExpressions\EndToken.cs" /> |
|
194 | <Compile Include="Automaton\RegularExpressions\EndToken.cs" /> | |
193 | <Compile Include="Automaton\RegularExpressions\RegularExpressionVisitorT.cs" /> |
|
195 | <Compile Include="Automaton\RegularExpressions\RegularExpressionVisitorT.cs" /> | |
194 | <Compile Include="Automaton\AutomatonConst.cs" /> |
|
196 | <Compile Include="Automaton\AutomatonConst.cs" /> | |
195 | <Compile Include="Automaton\RegularExpressions\RegularDFA.cs" /> |
|
197 | <Compile Include="Automaton\RegularExpressions\RegularDFA.cs" /> | |
196 | <Compile Include="Components\LazyAndWeak.cs" /> |
|
198 | <Compile Include="Components\LazyAndWeak.cs" /> | |
197 | <Compile Include="AbstractTask.cs" /> |
|
199 | <Compile Include="AbstractTask.cs" /> | |
198 | <Compile Include="AbstractTaskT.cs" /> |
|
200 | <Compile Include="AbstractTaskT.cs" /> | |
199 | <Compile Include="FailedPromise.cs" /> |
|
201 | <Compile Include="FailedPromise.cs" /> | |
200 | <Compile Include="FailedPromiseT.cs" /> |
|
202 | <Compile Include="FailedPromiseT.cs" /> | |
201 | <Compile Include="Components\PollingComponent.cs" /> |
|
203 | <Compile Include="Components\PollingComponent.cs" /> | |
202 | </ItemGroup> |
|
204 | </ItemGroup> | |
203 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
|
205 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | |
204 | <ItemGroup /> |
|
206 | <ItemGroup /> | |
205 | <ProjectExtensions> |
|
207 | <ProjectExtensions> | |
206 | <MonoDevelop> |
|
208 | <MonoDevelop> | |
207 | <Properties> |
|
209 | <Properties> | |
208 | <Policies> |
|
210 | <Policies> | |
209 | <CSharpFormattingPolicy IndentSwitchBody="True" NamespaceBraceStyle="EndOfLine" ClassBraceStyle="EndOfLine" InterfaceBraceStyle="EndOfLine" StructBraceStyle="EndOfLine" EnumBraceStyle="EndOfLine" MethodBraceStyle="EndOfLine" ConstructorBraceStyle="EndOfLine" DestructorBraceStyle="EndOfLine" BeforeMethodDeclarationParentheses="False" BeforeMethodCallParentheses="False" BeforeConstructorDeclarationParentheses="False" NewLineBeforeConstructorInitializerColon="NewLine" NewLineAfterConstructorInitializerColon="SameLine" BeforeIndexerDeclarationBracket="False" BeforeDelegateDeclarationParentheses="False" NewParentheses="False" SpacesBeforeBrackets="False" inheritsSet="Mono" inheritsScope="text/x-csharp" scope="text/x-csharp" /> |
|
211 | <CSharpFormattingPolicy IndentSwitchBody="True" NamespaceBraceStyle="EndOfLine" ClassBraceStyle="EndOfLine" InterfaceBraceStyle="EndOfLine" StructBraceStyle="EndOfLine" EnumBraceStyle="EndOfLine" MethodBraceStyle="EndOfLine" ConstructorBraceStyle="EndOfLine" DestructorBraceStyle="EndOfLine" BeforeMethodDeclarationParentheses="False" BeforeMethodCallParentheses="False" BeforeConstructorDeclarationParentheses="False" NewLineBeforeConstructorInitializerColon="NewLine" NewLineAfterConstructorInitializerColon="SameLine" BeforeIndexerDeclarationBracket="False" BeforeDelegateDeclarationParentheses="False" NewParentheses="False" SpacesBeforeBrackets="False" inheritsSet="Mono" inheritsScope="text/x-csharp" scope="text/x-csharp" /> | |
210 | <TextStylePolicy FileWidth="120" EolMarker="Unix" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/x-csharp" /> |
|
212 | <TextStylePolicy FileWidth="120" EolMarker="Unix" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/x-csharp" /> | |
211 | <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedHierarchical" ResourceNamePolicy="MSBuild" /> |
|
213 | <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedHierarchical" ResourceNamePolicy="MSBuild" /> | |
212 | <TextStylePolicy FileWidth="120" TabsToSpaces="False" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="application/xml" /> |
|
214 | <TextStylePolicy FileWidth="120" TabsToSpaces="False" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="application/xml" /> | |
213 | <XmlFormattingPolicy inheritsSet="Mono" inheritsScope="application/xml" scope="application/xml" /> |
|
215 | <XmlFormattingPolicy inheritsSet="Mono" inheritsScope="application/xml" scope="application/xml" /> | |
214 | <TextStylePolicy FileWidth="120" TabsToSpaces="False" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/plain" /> |
|
216 | <TextStylePolicy FileWidth="120" TabsToSpaces="False" inheritsSet="VisualStudio" inheritsScope="text/plain" scope="text/plain" /> | |
215 | <NameConventionPolicy> |
|
217 | <NameConventionPolicy> | |
216 | <Rules> |
|
218 | <Rules> | |
217 | <NamingRule Name="Namespaces" AffectedEntity="Namespace" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
219 | <NamingRule Name="Namespaces" AffectedEntity="Namespace" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
218 | <NamingRule Name="Types" AffectedEntity="Class, Struct, Enum, Delegate" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
220 | <NamingRule Name="Types" AffectedEntity="Class, Struct, Enum, Delegate" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
219 | <NamingRule Name="Interfaces" AffectedEntity="Interface" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> |
|
221 | <NamingRule Name="Interfaces" AffectedEntity="Interface" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> | |
220 | <RequiredPrefixes> |
|
222 | <RequiredPrefixes> | |
221 | <String>I</String> |
|
223 | <String>I</String> | |
222 | </RequiredPrefixes> |
|
224 | </RequiredPrefixes> | |
223 | </NamingRule> |
|
225 | </NamingRule> | |
224 | <NamingRule Name="Attributes" AffectedEntity="CustomAttributes" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> |
|
226 | <NamingRule Name="Attributes" AffectedEntity="CustomAttributes" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> | |
225 | <RequiredSuffixes> |
|
227 | <RequiredSuffixes> | |
226 | <String>Attribute</String> |
|
228 | <String>Attribute</String> | |
227 | </RequiredSuffixes> |
|
229 | </RequiredSuffixes> | |
228 | </NamingRule> |
|
230 | </NamingRule> | |
229 | <NamingRule Name="Event Arguments" AffectedEntity="CustomEventArgs" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> |
|
231 | <NamingRule Name="Event Arguments" AffectedEntity="CustomEventArgs" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> | |
230 | <RequiredSuffixes> |
|
232 | <RequiredSuffixes> | |
231 | <String>EventArgs</String> |
|
233 | <String>EventArgs</String> | |
232 | </RequiredSuffixes> |
|
234 | </RequiredSuffixes> | |
233 | </NamingRule> |
|
235 | </NamingRule> | |
234 | <NamingRule Name="Exceptions" AffectedEntity="CustomExceptions" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> |
|
236 | <NamingRule Name="Exceptions" AffectedEntity="CustomExceptions" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> | |
235 | <RequiredSuffixes> |
|
237 | <RequiredSuffixes> | |
236 | <String>Exception</String> |
|
238 | <String>Exception</String> | |
237 | </RequiredSuffixes> |
|
239 | </RequiredSuffixes> | |
238 | </NamingRule> |
|
240 | </NamingRule> | |
239 | <NamingRule Name="Methods" AffectedEntity="Methods" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
241 | <NamingRule Name="Methods" AffectedEntity="Methods" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
240 | <NamingRule Name="Static Readonly Fields" AffectedEntity="ReadonlyField" VisibilityMask="Internal, Protected, Public" NamingStyle="CamelCase" IncludeInstanceMembers="False" IncludeStaticEntities="True" /> |
|
242 | <NamingRule Name="Static Readonly Fields" AffectedEntity="ReadonlyField" VisibilityMask="Internal, Protected, Public" NamingStyle="CamelCase" IncludeInstanceMembers="False" IncludeStaticEntities="True" /> | |
241 | <NamingRule Name="Fields (Non Private)" AffectedEntity="Field" VisibilityMask="Internal, Public" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
243 | <NamingRule Name="Fields (Non Private)" AffectedEntity="Field" VisibilityMask="Internal, Public" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
242 | <NamingRule Name="ReadOnly Fields (Non Private)" AffectedEntity="ReadonlyField" VisibilityMask="Internal, Public" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="False" /> |
|
244 | <NamingRule Name="ReadOnly Fields (Non Private)" AffectedEntity="ReadonlyField" VisibilityMask="Internal, Public" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="False" /> | |
243 | <NamingRule Name="Fields (Private)" AffectedEntity="Field, ReadonlyField" VisibilityMask="Private, Protected" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="False"> |
|
245 | <NamingRule Name="Fields (Private)" AffectedEntity="Field, ReadonlyField" VisibilityMask="Private, Protected" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="False"> | |
244 | <RequiredPrefixes> |
|
246 | <RequiredPrefixes> | |
245 | <String>m_</String> |
|
247 | <String>m_</String> | |
246 | </RequiredPrefixes> |
|
248 | </RequiredPrefixes> | |
247 | </NamingRule> |
|
249 | </NamingRule> | |
248 | <NamingRule Name="Static Fields (Private)" AffectedEntity="Field" VisibilityMask="Private" NamingStyle="CamelCase" IncludeInstanceMembers="False" IncludeStaticEntities="True"> |
|
250 | <NamingRule Name="Static Fields (Private)" AffectedEntity="Field" VisibilityMask="Private" NamingStyle="CamelCase" IncludeInstanceMembers="False" IncludeStaticEntities="True"> | |
249 | <RequiredPrefixes> |
|
251 | <RequiredPrefixes> | |
250 | <String>_</String> |
|
252 | <String>_</String> | |
251 | </RequiredPrefixes> |
|
253 | </RequiredPrefixes> | |
252 | </NamingRule> |
|
254 | </NamingRule> | |
253 | <NamingRule Name="ReadOnly Fields (Private)" AffectedEntity="ReadonlyField" VisibilityMask="Private, Protected" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="False"> |
|
255 | <NamingRule Name="ReadOnly Fields (Private)" AffectedEntity="ReadonlyField" VisibilityMask="Private, Protected" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="False"> | |
254 | <RequiredPrefixes> |
|
256 | <RequiredPrefixes> | |
255 | <String>m_</String> |
|
257 | <String>m_</String> | |
256 | </RequiredPrefixes> |
|
258 | </RequiredPrefixes> | |
257 | </NamingRule> |
|
259 | </NamingRule> | |
258 | <NamingRule Name="Constant Fields" AffectedEntity="ConstantField" VisibilityMask="VisibilityMask" NamingStyle="AllUpper" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
260 | <NamingRule Name="Constant Fields" AffectedEntity="ConstantField" VisibilityMask="VisibilityMask" NamingStyle="AllUpper" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
259 | <NamingRule Name="Properties" AffectedEntity="Property" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
261 | <NamingRule Name="Properties" AffectedEntity="Property" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
260 | <NamingRule Name="Events" AffectedEntity="Event" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
262 | <NamingRule Name="Events" AffectedEntity="Event" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
261 | <NamingRule Name="Enum Members" AffectedEntity="EnumMember" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
263 | <NamingRule Name="Enum Members" AffectedEntity="EnumMember" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
262 | <NamingRule Name="Parameters" AffectedEntity="Parameter, LocalVariable" VisibilityMask="VisibilityMask" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> |
|
264 | <NamingRule Name="Parameters" AffectedEntity="Parameter, LocalVariable" VisibilityMask="VisibilityMask" NamingStyle="CamelCase" IncludeInstanceMembers="True" IncludeStaticEntities="True" /> | |
263 | <NamingRule Name="Type Parameters" AffectedEntity="TypeParameter" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> |
|
265 | <NamingRule Name="Type Parameters" AffectedEntity="TypeParameter" VisibilityMask="VisibilityMask" NamingStyle="PascalCase" IncludeInstanceMembers="True" IncludeStaticEntities="True"> | |
264 | <RequiredPrefixes> |
|
266 | <RequiredPrefixes> | |
265 | <String>T</String> |
|
267 | <String>T</String> | |
266 | </RequiredPrefixes> |
|
268 | </RequiredPrefixes> | |
267 | </NamingRule> |
|
269 | </NamingRule> | |
268 | </Rules> |
|
270 | </Rules> | |
269 | </NameConventionPolicy> |
|
271 | </NameConventionPolicy> | |
270 | </Policies> |
|
272 | </Policies> | |
271 | </Properties> |
|
273 | </Properties> | |
272 | </MonoDevelop> |
|
274 | </MonoDevelop> | |
273 | </ProjectExtensions> |
|
275 | </ProjectExtensions> | |
274 | <ItemGroup /> |
|
276 | <ItemGroup /> | |
275 | </Project> No newline at end of file |
|
277 | </Project> |
General Comments 3
ok, latest stable version should be in default
You need to be logged in to leave comments.
Login now