-
Notifications
You must be signed in to change notification settings - Fork 0
/
WCF-Generator.exe.config
126 lines (121 loc) · 10.6 KB
/
WCF-Generator.exe.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- Cofiguration of generation wcf client-->
<section name="wcfClientGenerator" type="WCFGenerator.WcfClientGeneration.Configuration.WcfClientGenerator, WCF-Generator" allowLocation="false" allowDefinition="Everywhere" />
<!-- Cofiguration of generation repositories-->
<section name="repositoryGenerator" type="WCFGenerator.RepositoriesGeneration.Configuration.RepositoryGenerator, WCF-Generator" allowLocation="false" allowDefinition="Everywhere" />
<!-- Cofiguration of generation serialize-->
<section name="serialize" type="WCFGenerator.SerializeGeneration.Configuration.SerializeConfiguration, WCF-Generator" />
<!-- Cofiguration of generation decorators-->
<section name="decoratorGenerator" type="WCFGenerator.DecoratorGeneration.Configuration.DecoratorGenerator, WCF-Generator" />
</configSections>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
</startup>
<appSettings>
<add key="SolutionPath" value="WCF-Generator.sln" />
</appSettings>
<!-- Cofiguration of generation wcf client-->
<wcfClientGenerator enabled="false">
<wcfServices>
<!--<add ClientInterfaceName="IBackOffice" ServiceInterfaceFileName="IBackOfficeService.cs" TargetProjectName="YumaPos.Client.Backoffice" FaultNamespace="YumaPos.Shared.API.Faults" ApiInterfaceProjectName="YumaPos.Shared.BackOffice.Infrastructure" ApiInterfaceProjectFolder="API" />
<add ClientInterfaceName="ITerminal" ServiceInterfaceFileName="ITerminalService.cs" TargetProjectName="YumaPos.Client.WCF" FaultNamespace="YumaPos.Shared.API.Faults" ApiInterfaceProjectName="YumaPos.Shared.Terminal.Infrastructure" ApiInterfaceProjectFolder="API" />
<add ClientInterfaceName="IOrderService" ServiceInterfaceFileName="IOrderService.cs" TargetProjectName="YumaPos.Client.WCF" FaultNamespace="YumaPos.Shared.API.Faults" ApiInterfaceProjectName="YumaPos.Shared.Terminal.Infrastructure" ApiInterfaceProjectFolder="API" />
<add ClientInterfaceName="IOnlineService" ServiceInterfaceFileName="IOnlineService.cs" TargetProjectName="YumaPos.Client.Online" FaultNamespace="YumaPos.Shared.API.Faults" ApiInterfaceProjectName="YumaPos.Shared.Online.Infrastructure" ApiInterfaceProjectFolder="API" />
<add ClientInterfaceName="IKitchen" ServiceInterfaceFileName="IKitchenService.cs" TargetProjectName="YumaPos.Client.Kitchen" FaultNamespace="YumaPos.Shared.API.Faults" ApiInterfaceProjectName="YumaPos.Shared.Kitchen.Infrastructure" ApiInterfaceProjectFolder="API" />
<add ClientInterfaceName="IReports" ServiceInterfaceFileName="IReportsService.cs" TargetProjectName="YumaPos.Client.Reports" FaultNamespace="YumaPos.Shared.API.Faults" ApiInterfaceProjectName="YumaPos.Shared.Reports.Infrastructure" ApiInterfaceProjectFolder="API" /> -->
<!-- turned off because of bug in Roslyn, see https://github.com/dotnet/roslyn/issues/27558 -->
<!--
<add ClientInterfaceName="IInternal" ServiceInterfaceFileName="IInternalService.cs" TargetProjectName="YumaPos.Client.Internal" FaultNamespace="YumaPos.Shared.API.Faults" ApiInterfaceProjectName="YumaPos.Shared.Internal.Infrastructure" ApiInterfaceProjectFolder="API" />
-->
</wcfServices>
</wcfClientGenerator>
<!-- Cofiguration of generation repositories-->
<!-- <repositoryGenerator>
<repositoryProjects>
<add Name="Server" TargetProjectName="YumaPos.Server.Data.Sql" RepositoryAttributeName="DataAccess" RepositoryTargetFolder="Repositories\Generated" RepositorySuffix="Repository" RepositoryInterfacesProjectName="YumaPos.Server.Infrastructure" RepositoryClassProjects="YumaPos.Server.Infrastructure,YumaPos.FrontEnd.Infrastructure,YumaPos.FrontEnd.Data.Infractructure" AdditionalProjects="YumaPos.Shared.Infrastructure" DefaultNamespace="YumaPos.Server.Data.Sql" DatabaseType="1" />
<add Name="FrontEnd" TargetProjectName="YumaPos.FrontEnd.Data" RepositoryAttributeName="DataRepository" RepositoryTargetFolder="Repositories\Generated" RepositorySuffix="Repository" RepositoryInterfacesProjectName="YumaPos.FrontEnd.Data.Infractructure" RepositoryClassProjects="YumaPos.FrontEnd.Data.Infractructure" AdditionalProjects="YumaPos.FrontEnd.Infrastructure" DefaultNamespace="YumaPos.FrontEnd.Data.Repositories" DatabaseType="1" />
<add Name="Archive" TargetProjectName="YumaPos.Archive.Data.Sql" RepositoryAttributeName="DataArchive" RepositoryTargetFolder="Repositories\Generated" RepositorySuffix="ArchiveRepository" RepositoryInterfacesProjectName="YumaPos.Archive.Data.Infrastructure" RepositoryClassProjects="YumaPos.Archive.Data.Infrastructure" AdditionalProjects="YumaPos.FrontEnd.Infrastructure" DefaultNamespace="YumaPos.Archive.Data.Sql.Repositories" DatabaseType="2" />
</repositoryProjects>
</repositoryGenerator> -->
<repositoryGenerator enabled="true">
<repositoryProjects>
<add Name="Sandbox.Server" TargetProjectName="TestRepositoryGeneration" RepositoryAttributeName="DataAccess" RepositoryBase="TestRepositoryGeneration.Infrastructure.RepositoryBase" RepositoryTargetFolder="GeneratedRepositories" RepositorySuffix="Repository" RepositoryInterfacesProjectName="TestRepositoryGeneration" RepositoryClassProjects="TestRepositoryGeneration" AdditionalProjects="" DefaultNamespace="TestRepositoryGeneration" DatabaseType="1" />
<add Name="Sandbox.FrontEnd" TargetProjectName="TestRepositoryGeneration" RepositoryAttributeName="DataRepository" RepositoryBase="TestRepositoryGeneration.Infrastructure.RepositoryBase" RepositoryTargetFolder="GeneratedRepositories" RepositorySuffix="Repository" RepositoryInterfacesProjectName="TestRepositoryGeneration" RepositoryClassProjects="TestRepositoryGeneration" AdditionalProjects="" DefaultNamespace="TestRepositoryGeneration" DatabaseType="1" />
<add Name="Archive" TargetProjectName="TestRepositoryGeneration" RepositoryAttributeName="DataArchive" RepositoryBase="TestRepositoryGeneration.Infrastructure.RepositoryBase" RepositoryTargetFolder="PostgresRepositories" RepositorySuffix="ArchiveRepository" RepositoryInterfacesProjectName="TestRepositoryGeneration" RepositoryClassProjects="TestRepositoryGeneration" AdditionalProjects="" DefaultNamespace="TestRepositoryGeneration" DatabaseType="2" />
</repositoryProjects>
</repositoryGenerator>
<!-- Cofiguration of generation serialize-->
<!--<serialize baseInterface="IStatefulObject" ignoreAttribute="SerializeIgnore" includeAttribute="SerializeInclude" generationPrefix="Do" mappingAttribute="MapBoToDo" mappingIgnoreAttribute="MapBoToDoIgnore" migrationVersionProject="YumaPos.Server.Infrastructure" migrationVersionClass="VersionHelper" migrationProject="YumaPos.Server.Backup.Migrations" migrationInterface="IMigrationBackup" migrationClassPrefix="Migration" migrationIgnoreAttribute="MigrationIgnore">
<invalidPropertyTypes>
<add type="System.Collections.Generic.Dictionary" />
<add type="Dictionary" />
<add type="System.Tuple" />
<add type="Tuple" />
</invalidPropertyTypes>
<projectNames>
<add generationProjects="YumaPos.FrontEnd.BusinessLogic" />
<add generationProjects="YumaPos.FrontEnd.ECoupons.Infrastructure" />
<add generationProjects="YumaPos.FrontEnd.ECoupons" />
<add generationProjects="YumaPos.Server.Data" />
<add generationProjects="YumaPos.Server.BusinessLogic" />
<add generationProjects="YumaPos.FrontEnd.BusinessLogic.Infrastructure" />
</projectNames>
<helpProjectNames>
<add helpProject="YumaPos.FrontEnd.Infrastructure" />
<add helpProject="YumaPos.FrontEnd.Data.Infractructure" />
</helpProjectNames>
</serialize> -->
<!-- Sandbox -->
<serialize enabled="true" baseInterface="IStatefulObject" ignoreAttribute="SerializeIgnore" includeAttribute="SerializeInclude" generationPrefix="Do" mappingAttribute="MapBoToDo" mappingIgnoreAttribute="MapBoToDoIgnore" migrationVersionProject="TestSerializationGeneration" migrationVersionClass="VersionHelper" migrationProject="TestSerializationGeneration" migrationInterface="IMigrationBackup" migrationClassPrefix="Migration" migrationIgnoreAttribute="MigrationIgnore">
<projectNames>
<add generationProjects="TestSerializationGeneration" />
</projectNames>
<invalidPropertyTypes>
<add type="Dictionary" />
<add type="System.Collections.Generic.Dictionary" />
</invalidPropertyTypes>
<helpProjectNames>
<add helpProject="TestSerializationGeneration" />
</helpProjectNames>
</serialize>
<!-- Cofiguration of generation decorators-->
<!-- <decoratorGenerator>
<decoratorProjects>
<project name="YumaPos.Server.WCF.SelfHost" ignoreMethodAttributeName="IgnoreDecorationAttribute">
<decoratedClasses>
<add sourceClass="YumaPos.WCF.TerminalServiceInner" targetClass="TerminalService" onEntryReturnType="ICommandExecutionResult" />
<add sourceClass="YumaPos.WCF.OnlineServiceInner" targetClass="OnlineService" onEntryReturnType="ICommandExecutionResult" />
<add sourceClass="YumaPos.WCF.OrderServiceInner" targetClass="OrderService" onEntryReturnType="ICommandExecutionResult" />
<add sourceClass="YumaPos.WCF.KitchenServiceInner" targetClass="KitchenService" onEntryReturnType="ICommandExecutionResult" />
<add sourceClass="YumaPos.WCF.InternalServiceInner" targetClass="InternalService" onEntryReturnType="ICommandExecutionResult" />
</decoratedClasses>
</project>
<project name="YumaPos.Server.WCF" ignoreMethodAttributeName="IgnoreDecorationAttribute">
<decoratedClasses>
<add sourceClass="YumaPos.WCF.BackOfficeServiceInner" targetClass="BackOfficeService" />
<add sourceClass="YumaPos.WCF.ReportsServiceInner" targetClass="ReportsService" />
</decoratedClasses>
</project>
</decoratorProjects>
</decoratorGenerator> -->
<decoratorGenerator enabled="true">
<decoratorProjects>
<!-- Sandbox -->
<project name="TestDecoratorGeneration" ignoreMethodAttributeName="IgnoreDecorationAttribute">
<decoratedClasses>
<add sourceClass="TestDecoratorGeneration.ServiceDecorator" targetClass="Service" />
<add sourceClass="TestDecoratorGeneration.Managers.Manager" targetClass="ManagerDecorator" useAllOptions="false" />
</decoratedClasses>
</project>
<!-- WCF -->
<!--<project name="YumaPos.Server.WCF.SelfHost">
<decoratedClasses>
<add sourceClass ="YumaPos.WCF.TerminalServiceInner" targetClass="TerminalService"/>
<add sourceClass ="YumaPos.WCF.OnlineServiceInner" targetClass="OnlineService"/>
</decoratedClasses>
</project>-->
</decoratorProjects>
</decoratorGenerator>
</configuration>