Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamdi1992 committed Dec 7, 2022
1 parent 284985f commit bb112d6
Show file tree
Hide file tree
Showing 52 changed files with 3,221 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
57 changes: 57 additions & 0 deletions BackEndService/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ITemplateService" />
<binding name="BasicHttpBinding_ICusServ" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8733/Design_Time_Addresses/TemplateService/Service1/"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITemplateService"
contract="TemplateService.ITemplateService" name="BasicHttpBinding_ITemplateService" />
<endpoint address="http://localhost:8733/Design_Time_Addresses/ServiceCustomers/Service1/"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ICusServ"
contract="ServiceCustomers.ICusServ" name="BasicHttpBinding_ICusServ" />
</client>
<services>
<service name="BackEndService_.BackEService">
<endpoint address="" binding="basicHttpBinding" contract="BackEndService_.IBackEService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8733/Design_Time_Addresses/BackEndService/Service1/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information,
set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>

</configuration>
38 changes: 38 additions & 0 deletions BackEndService/BackEService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using BackEndService.ServiceCustomers;
using BackEndService.TemplateService;
using System;
using System.Diagnostics;

namespace BackEndService_
{
public class BackEService : IBackEService
{
public string GenerateTemplate(int creditNumber, string templateName)
{
try
{
CusServClient client = new CusServClient();
CustomerDC Cdc = client.getCustomer(creditNumber);
TemplateServiceClient client_ = new TemplateServiceClient();
TemplateDC Tdc = client_.getTemplate(templateName);
// name - creditnumber - summe - date => the order to generate the template
string temp = string.Format(Tdc.TextSample, Cdc.Name, Cdc.Creditnumber, Cdc.amount, Cdc.dueDate);
client.editCustomer(creditNumber, temp);
return temp;
}
catch (Exception exc )
{
Debug.WriteLine(exc.ToString());
return null;
}
}

public void GenerateSeedData()
{
CusServClient client = new CusServClient();
TemplateServiceClient client_ = new TemplateServiceClient();
client.GenerateSeedData();
client_.GenerateSeedData();
}
}
}
147 changes: 147 additions & 0 deletions BackEndService/BackEndService.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{02E4C3A1-1B30-4DD5-BE11-C974CAC17703}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BackEndService</RootNamespace>
<AssemblyName>BackEndService</AssemblyName>
<ProjectTypeGuids>{3D9AD99F-2412-4246-B90B-4EAA41C64699};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<StartArguments>/client:"WcfTestClient.exe"</StartArguments>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<WcfConfigValidationEnabled>True</WcfConfigValidationEnabled>
<XsdCodeGenEnabled>True</XsdCodeGenEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="Connected Services\ServiceCustomers\Reference.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Reference.svcmap</DependentUpon>
</Compile>
<Compile Include="Connected Services\TemplateService\Reference.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Reference.svcmap</DependentUpon>
</Compile>
<Compile Include="IBackEService.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="BackEService.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="Connected Services\ServiceCustomers\BackEndService.ServiceCustomers.CustomerDC.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\ServiceCustomers\service.wsdl" />
<None Include="Connected Services\ServiceCustomers\service.xsd">
<SubType>Designer</SubType>
</None>
<None Include="Connected Services\ServiceCustomers\service1.xsd">
<SubType>Designer</SubType>
</None>
<None Include="Connected Services\ServiceCustomers\ServiceCustomers.DataContracts.xsd">
<SubType>Designer</SubType>
</None>
<None Include="Connected Services\TemplateService\Arrays.xsd">
<SubType>Designer</SubType>
</None>
<None Include="Connected Services\TemplateService\BackEndService.TemplateService.TemplateDC.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<None Include="Connected Services\TemplateService\service.wsdl" />
<None Include="Connected Services\TemplateService\service.xsd">
<SubType>Designer</SubType>
</None>
<None Include="Connected Services\TemplateService\service1.xsd">
<SubType>Designer</SubType>
</None>
<None Include="Connected Services\TemplateService\TemplateService.DataContracts.xsd">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<ItemGroup>
<WCFMetadataStorage Include="Connected Services\ServiceCustomers\" />
<WCFMetadataStorage Include="Connected Services\TemplateService\" />
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\TemplateService\configuration91.svcinfo" />
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\TemplateService\configuration.svcinfo" />
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\TemplateService\Reference.svcmap">
<Generator>WCF Proxy Generator</Generator>
<LastGenOutput>Reference.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\ServiceCustomers\configuration91.svcinfo" />
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\ServiceCustomers\configuration.svcinfo" />
</ItemGroup>
<ItemGroup>
<None Include="Connected Services\ServiceCustomers\Reference.svcmap">
<Generator>WCF Proxy Generator</Generator>
<LastGenOutput>Reference.cs</LastGenOutput>
</None>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<VSToolsPath Condition="'$(VSToolsPath)' == '' and '$(VisualStudioVersion)' != '' and '$(VisualStudioVersion)' != '11.0'">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio</VSToolsPath>
<WcfServiceModelTargetPath>$(VSToolsPath)\WCF</WcfServiceModelTargetPath>
</PropertyGroup>
<Import Project="$(WcfServiceModelTargetPath)\Microsoft.VisualStudio.ServiceModel.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{3D9AD99F-2412-4246-B90B-4EAA41C64699}">
<WcfProjectProperties>
<AutoStart>True</AutoStart>
</WcfProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="CustomerDC" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>BackEndService.ServiceCustomers.CustomerDC, Connected Services.ServiceCustomers.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
Loading

0 comments on commit bb112d6

Please sign in to comment.