Commit c7ee5b2c c7ee5b2c73d30cc825be06483ee1b6071c176907 by Gabor Felegyhazi

Kesz

1 parent e47e568b
Showing 1000 changed files with 1148 additions and 98 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2 <PropertyGroup>
3 <!-- Mark that this target file has been loaded. -->
4 <IsPaketRestoreTargetsFileLoaded>true</IsPaketRestoreTargetsFileLoaded>
5 <PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath>
6 <MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath>
7 <MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath>
8 <!-- Paket command -->
9 <PaketExePath Condition=" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')">$(PaketRootPath)paket.exe</PaketExePath>
10 <PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
11 <PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
12 <PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>
13 <PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' AND Exists('$(PaketRootPath)paket.bootstrapper.exe')">$(PaketRootPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
14 <PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
15 <PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)"</PaketBootStrapperCommand>
16 <PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketBootStrapperExePath)"</PaketBootStrapperCommand>
17 </PropertyGroup>
18
19 <Target Name="PaketRestore" BeforeTargets="_GenerateDotnetCliToolReferenceSpecs;_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" >
20
21 <Exec Command='$(PaketBootStrapperCommand) ' Condition="Exists('$(PaketBootStrapperExePath)') AND !(Exists('$(PaketExePath)'))" ContinueOnError="false" />
22 <Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" --target-framework $(TargetFramework)' ContinueOnError="false" />
23
24 <PropertyGroup>
25 <PaketReferencesFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath>
26 </PropertyGroup>
27
28 <ReadLinesFromFile File="$(PaketReferencesFilePath)" >
29 <Output TaskParameter="Lines" ItemName="PaketReferencesFileLines"/>
30 </ReadLinesFromFile>
31
32 <ItemGroup Condition=" '@(PaketReferencesFileLines)' != '' " >
33 <PaketReferencesFileLinesInfo Include="@(PaketReferencesFileLines)" >
34 <PackageName>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName>
35 <PackageVersion>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion>
36 </PaketReferencesFileLinesInfo>
37 <PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)">
38 <Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version>
39 </PackageReference>
40 </ItemGroup>
41
42 <PropertyGroup>
43 <PaketCliToolFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).paket.clitools</PaketCliToolFilePath>
44 </PropertyGroup>
45
46 <ReadLinesFromFile File="$(PaketCliToolFilePath)" >
47 <Output TaskParameter="Lines" ItemName="PaketCliToolFileLines"/>
48 </ReadLinesFromFile>
49
50 <ItemGroup Condition=" '@(PaketCliToolFileLines)' != '' " >
51 <PaketCliToolFileLinesInfo Include="@(PaketCliToolFileLines)" >
52 <PackageName>$([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[0])</PackageName>
53 <PackageVersion>$([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[1])</PackageVersion>
54 </PaketCliToolFileLinesInfo>
55 <DotNetCliToolReference Include="%(PaketCliToolFileLinesInfo.PackageName)">
56 <Version>%(PaketCliToolFileLinesInfo.PackageVersion)</Version>
57 </DotNetCliToolReference>
58 </ItemGroup>
59
60 <PropertyGroup>
61 <RestoreConfigFile>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config</RestoreConfigFile>
62 </PropertyGroup>
63
64 </Target>
65
66 <Target Name="PaketDisableDirectPack" AfterTargets="_IntermediatePack" BeforeTargets="GenerateNuspec" >
67 <PropertyGroup>
68 <ContinuePackingAfterGeneratingNuspec>false</ContinuePackingAfterGeneratingNuspec>
69 </PropertyGroup>
70 </Target>
71
72 <Target Name="PaketOverrideNuspec" AfterTargets="GenerateNuspec" >
73 <PropertyGroup>
74 <PaketReferencesFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath>
75 <ContinuePackingAfterGeneratingNuspec>true</ContinuePackingAfterGeneratingNuspec>
76 </PropertyGroup>
77
78 <ItemGroup>
79 <_NuspecFiles Include="$(BaseIntermediateOutputPath)*.nuspec"/>
80 </ItemGroup>
81
82 <Exec Command='$(PaketCommand) fix-nuspec file "@(_NuspecFiles)" references-file "$(PaketReferencesFilePath)" ' />
83
84 <ConvertToAbsolutePath Condition="@(_NuspecFiles) != ''" Paths="@(_NuspecFiles)">
85 <Output TaskParameter="AbsolutePaths" PropertyName="NuspecFileAbsolutePath" />
86 </ConvertToAbsolutePath>
87
88 <!-- Call Pack -->
89 <PackTask PackItem="$(PackProjectInputFile)"
90 PackageFiles="@(_PackageFiles)"
91 PackageFilesToExclude="@(_PackageFilesToExclude)"
92 PackageVersion="$(PackageVersion)"
93 PackageId="$(PackageId)"
94 Title="$(Title)"
95 Authors="$(Authors)"
96 Description="$(Description)"
97 Copyright="$(Copyright)"
98 RequireLicenseAcceptance="$(PackageRequireLicenseAcceptance)"
99 LicenseUrl="$(PackageLicenseUrl)"
100 ProjectUrl="$(PackageProjectUrl)"
101 IconUrl="$(PackageIconUrl)"
102 ReleaseNotes="$(PackageReleaseNotes)"
103 Tags="$(PackageTags)"
104 TargetPathsToAssemblies="@(_TargetPathsToAssemblies->'%(FinalOutputPath)')"
105 TargetPathsToSymbols="@(_TargetPathsToSymbols)"
106 TargetFrameworks="@(_TargetFrameworks)"
107 AssemblyName="$(AssemblyName)"
108 PackageOutputPath="$(PackageOutputAbsolutePath)"
109 IncludeSymbols="$(IncludeSymbols)"
110 IncludeSource="$(IncludeSource)"
111 PackageTypes="$(PackageType)"
112 IsTool="$(IsTool)"
113 RepositoryUrl="$(RepositoryUrl)"
114 RepositoryType="$(RepositoryType)"
115 SourceFiles="@(_SourceFiles->Distinct())"
116 NoPackageAnalysis="$(NoPackageAnalysis)"
117 MinClientVersion="$(MinClientVersion)"
118 Serviceable="$(Serviceable)"
119 AssemblyReferences="@(_References)"
120 ContinuePackingAfterGeneratingNuspec="$(ContinuePackingAfterGeneratingNuspec)"
121 NuspecOutputPath="$(BaseIntermediateOutputPath)"
122 IncludeBuildOutput="$(IncludeBuildOutput)"
123 BuildOutputFolder="$(BuildOutputTargetFolder)"
124 ContentTargetFolders="$(ContentTargetFolders)"
125 RestoreOutputPath="$(RestoreOutputAbsolutePath)"
126 NuspecFile="$(NuspecFileAbsolutePath)"
127 NuspecBasePath="$(NuspecBasePath)"
128 NuspecProperties="$(NuspecProperties)"/>
129 </Target>
130
131 </Project>
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
1 namespace CCE.Hosting.Netcore
2 {
3 using CCE.Configuration;
4 using Nancy;
5 using Nancy.TinyIoc;
6 using Nancy.Bootstrapper;
7 using CCE.Data.Configuration;
8 using CCE.Data.Sql;
9 using CCE.BLL.Configuration;
10
11 public class Bootstrapper : DefaultNancyBootstrapper
12 {
13 protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
14 {
15
16 var env = new DefaultCCEEnvironment(System.Environment.GetEnvironmentVariables());
17
18 env.AddValue<int>("alma",1);
19
20 container.Register<ICCEEnvironment, DefaultCCEEnvironment>(env);
21 container.Register<ICCEContext, DefaultCCEContext>().AsSingleton();
22 container.Register<ICCEDataContext, MsSqlCCESqlDataContext>().AsSingleton();
23 container.Register<ICCEBusinessContext, DefaultCCEBusinessContext>().AsSingleton();
24 }
25 }
26 }
1 <Project Sdk="Microsoft.NET.Sdk.Web">
2
3 <PropertyGroup>
4 <TargetFramework>netcoreapp1.1</TargetFramework>
5 </PropertyGroup>
6
7 <ItemGroup>
8 <Folder Include="wwwroot\" />
9 </ItemGroup>
10
11 <ItemGroup>
12 <ProjectReference Include="..\CCE\CCE.csproj" />
13 </ItemGroup>
14
15 <Import Project="..\.paket\Paket.Restore.targets" />
16 </Project>
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>
4 <ActiveDebugProfile>CCE.Hosting.Netcore</ActiveDebugProfile>
5 </PropertyGroup>
6 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
7 <DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
8 </PropertyGroup>
9 </Project>
...\ No newline at end of file ...\ No newline at end of file
1 namespace CCE.Hosting.Netcore
2 {
3 using CCE.Configuration;
4 using Nancy;
5
6 public class HomeModule : NancyModule
7 {
8 public HomeModule(ICCEBusinessContext businessContext)
9 {
10 Get(
11 "/",
12 parameters =>
13 Response.AsJson(businessContext));
14
15 Get("/Environment/{key}", x => {
16 string value;
17 businessContext.CCEContext.Environment.TryGetValue(x.key, out value);
18 return Response.AsJson(value);
19 });
20 }
21 }
22 }
1 namespace CCE.Hosting.Netcore
2 {
3 using System.IO;
4 using Microsoft.AspNetCore.Hosting;
5
6 /// <summary>
7 /// Netcore hosting runner
8 /// </summary>
9 public class Program
10 {
11 /// <summary>
12 /// Mains the specified arguments.
13 /// </summary>
14 /// <param name="args">The arguments.</param>
15 public static void Main(string[] args)
16 {
17 var host = new WebHostBuilder()
18 .UseKestrel().UseContentRoot(Directory.GetCurrentDirectory())
19 .UseIISIntegration().UseStartup<Startup>()
20 .Build();
21
22 host.Run();
23 }
24 }
25 }
1 {
2 "iisSettings": {
3 "windowsAuthentication": false,
4 "anonymousAuthentication": true,
5 "iisExpress": {
6 "applicationUrl": "http://localhost:57600/",
7 "sslPort": 0
8 }
9 },
10 "profiles": {
11 "IIS Express": {
12 "commandName": "IISExpress",
13 "launchBrowser": true,
14 "environmentVariables": {
15 "ASPNETCORE_ENVIRONMENT": "Development"
16 }
17 },
18 "CCE.Hosting.Netcore": {
19 "commandName": "Project"
20 }
21 }
22 }
...\ No newline at end of file ...\ No newline at end of file
1 namespace CCE.Hosting.Netcore
2 {
3 using System.IO;
4 using Nancy;
5
6 /// <summary>
7 /// Root path provider for basic root folder path of web contents
8 /// </summary>
9 /// <seealso cref="Nancy.IRootPathProvider" />
10 internal class ServiceRootPathProvider : IRootPathProvider
11 {
12 /// <summary>
13 /// The provider of the filesystem path
14 /// </summary>
15 private readonly IRootPathProvider provider = new DefaultRootPathProvider();
16
17 /// <summary>
18 /// Returns the root folder path of the current application.
19 /// </summary>
20 /// <returns>
21 /// A <see cref="T:System.String" /> containing the path of the root folder.
22 /// </returns>
23 public string GetRootPath()
24 {
25 return Path.Combine(this.provider.GetRootPath());
26 }
27 }
28 }
...\ No newline at end of file ...\ No newline at end of file
1 namespace CCE.Hosting.Netcore
2 {
3 using Microsoft.AspNetCore.Builder;
4 using Nancy.Owin;
5
6 /// <summary>
7 /// Netcore hosting Owin startup settigs
8 /// </summary>
9 public class Startup
10 {
11 /// <summary>
12 /// Configures the specified application.
13 /// </summary>
14 /// <param name="app">The application.</param>
15 public void Configure(IApplicationBuilder app)
16 {
17 app.UseOwin(x => x.UseNancy());
18 }
19 }
20 }
This diff could not be displayed because it is too large.
1 {
2 "runtimeOptions": {
3 "additionalProbingPaths": [
4 "C:\\Users\\felegy\\.nuget\\packages"
5 ]
6 }
7 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "runtimeOptions": {
3 "framework": {
4 "name": "Microsoft.NETCore.App",
5 "version": "1.1.2"
6 },
7 "configProperties": {
8 "System.GC.Server": true
9 }
10 }
11 }
...\ No newline at end of file ...\ No newline at end of file
This diff could not be displayed because it is too large.
1 {
2 "runtimeOptions": {
3 "additionalProbingPaths": [
4 "C:\\Users\\felegy\\.nuget\\packages"
5 ]
6 }
7 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "runtimeOptions": {
3 "framework": {
4 "name": "Microsoft.NETCore.App",
5 "version": "1.1.2"
6 },
7 "configProperties": {
8 "System.GC.Server": true
9 }
10 }
11 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <configuration>
3 <packageSources>
4 <clear />
5 </packageSources>
6 <disabledPackageSources>
7 <clear />
8 </disabledPackageSources>
9 </configuration>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\project.assets.json</ProjectAssetsFile>
7 <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\felegy\.nuget\packages\</NuGetPackageFolders>
9 <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">4.2.0</NuGetToolVersion>
11 </PropertyGroup>
12 <PropertyGroup>
13 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
14 </PropertyGroup>
15 <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
16 <Import Project="$(NuGetPackageRoot)microsoft.diasymreader.native\1.4.1\build\Microsoft.DiaSymReader.Native.props" Condition="Exists('$(NuGetPackageRoot)microsoft.diasymreader.native\1.4.1\build\Microsoft.DiaSymReader.Native.props')" />
17 </ImportGroup>
18 </Project>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>
4 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5 </PropertyGroup>
6 </Project>
...\ No newline at end of file ...\ No newline at end of file
1 Microsoft.NETCore.Platforms,1.1,Transitive,Main
2 Libuv,1.9.2,Transitive,Main
3 Microsoft.NETCore.Targets,1.1,Transitive,Main
4 runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
5 runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
6 runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
7 runtime.native.System,4.3,Transitive,Main
8 runtime.native.System.IO.Compression,4.3,Transitive,Main
9 runtime.native.System.Net.Http,4.3,Transitive,Main
10 runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
11 runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
12 runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple,4.3,Transitive,Main
13 runtime.native.System.Security.Cryptography.Apple,4.3,Transitive,Main
14 runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
15 runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
16 runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
17 runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
18 runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
19 runtime.native.System.Security.Cryptography.OpenSsl,4.3.1,Transitive,Main
20 System.Runtime,4.3,Transitive,Main
21 Microsoft.Win32.Primitives,4.3,Transitive,Main
22 System.AppContext,4.3,Transitive,Main
23 System.Collections,4.3,Transitive,Main
24 System.ComponentModel,4.3,Transitive,Main
25 System.Diagnostics.Contracts,4.3,Transitive,Main
26 System.Diagnostics.Debug,4.3,Transitive,Main
27 System.Diagnostics.Tools,4.3,Transitive,Main
28 System.Diagnostics.Tracing,4.3,Transitive,Main
29 System.Globalization,4.3,Transitive,Main
30 System.Globalization.Calendars,4.3,Transitive,Main
31 System.IO.FileSystem.Primitives,4.3,Transitive,Main
32 System.Reflection.Primitives,4.3,Transitive,Main
33 System.Runtime.CompilerServices.Unsafe,4.3,Transitive,Main
34 System.Runtime.Extensions,4.3,Transitive,Main
35 System.Runtime.Handles,4.3,Transitive,Main
36 System.Net.Primitives,4.3,Transitive,Main
37 System.Security.Principal,4.3,Transitive,Main
38 System.Text.Encoding,4.3,Transitive,Main
39 System.Text.Encoding.Extensions,4.3,Transitive,Main
40 System.Threading.Tasks,4.3,Transitive,Main
41 System.IO,4.3,Transitive,Main
42 System.Console,4.3,Transitive,Main
43 System.IO.FileSystem,4.3,Transitive,Main
44 System.Net.Sockets,4.3,Transitive,Main
45 System.Reflection,4.3,Transitive,Main
46 System.Reflection.Emit.ILGeneration,4.3,Transitive,Main
47 System.Reflection.Emit,4.3,Transitive,Main
48 System.Reflection.Emit.Lightweight,4.3,Transitive,Main
49 System.Reflection.Extensions,4.3,Transitive,Main
50 System.Reflection.TypeExtensions,4.3,Transitive,Main
51 System.Resources.ResourceManager,4.3,Transitive,Main
52 System.ComponentModel.Primitives,4.3,Transitive,Main
53 System.Linq,4.3,Transitive,Main
54 System.Net.WebSockets,4.3,Transitive,Main
55 System.Numerics.Vectors,4.3,Transitive,Main
56 System.Runtime.InteropServices,4.3,Transitive,Main
57 System.Globalization.Extensions,4.3,Transitive,Main
58 System.Runtime.Loader,4.3,Transitive,Main
59 System.Runtime.Numerics,4.3,Transitive,Main
60 System.Runtime.Serialization.Primitives,4.3,Transitive,Main
61 System.Runtime.Serialization.Formatters,4.3,Transitive,Main
62 System.Security.Claims,4.3,Transitive,Main
63 System.Threading,4.3,Transitive,Main
64 System.Buffers,4.3,Transitive,Main
65 System.Collections.Concurrent,4.3,Transitive,Main
66 System.Collections.Immutable,1.3.1,Transitive,Main
67 System.Collections.NonGeneric,4.3,Transitive,Main
68 System.Collections.Specialized,4.3,Transitive,Main
69 System.ComponentModel.TypeConverter,4.3,Transitive,Main
70 System.Diagnostics.DiagnosticSource,4.4,Transitive,Main
71 System.IO.Compression,4.3,Transitive,Main
72 System.IO.Compression.ZipFile,4.3,Transitive,Main
73 System.ObjectModel,4.3,Transitive,Main
74 System.Linq.Expressions,4.3,Transitive,Main
75 System.Dynamic.Runtime,4.3,Transitive,Main
76 Microsoft.CSharp,4.3,Transitive,Main
77 System.Reflection.Metadata,1.4.2,Transitive,Main
78 System.Diagnostics.StackTrace,4.3,Transitive,Main
79 System.Runtime.InteropServices.RuntimeInformation,4.3,Transitive,Main
80 Microsoft.DotNet.PlatformAbstractions,1.1.2,Transitive,Main
81 System.Security.Cryptography.Primitives,4.3,Transitive,Main
82 System.Security.Cryptography.Encoding,4.3,Transitive,Main
83 System.Security.Cryptography.Algorithms,4.3,Transitive,Main
84 System.Security.Cryptography.Cng,4.3,Transitive,Main
85 System.Security.Cryptography.Csp,4.3,Transitive,Main
86 System.Security.Cryptography.OpenSsl,4.3,Transitive,Main
87 System.Security.Cryptography.X509Certificates,4.3,Transitive,Main
88 System.Net.Http,4.3.2,Transitive,Main
89 System.Security.Principal.Windows,4.3,Transitive,Main
90 System.Net.NameResolution,4.3,Transitive,Main
91 System.Text.Encodings.Web,4.3.1,Transitive,Main
92 System.Text.RegularExpressions,4.3,Transitive,Main
93 System.Data.Common,4.3,Transitive,Main
94 System.Threading.Overlapped,4.3,Transitive,Main
95 System.Threading.Tasks.Extensions,4.3,Transitive,Main
96 System.Threading.Thread,4.3,Transitive,Main
97 System.IO.FileSystem.Watcher,4.3,Transitive,Main
98 System.Threading.ThreadPool,4.3,Transitive,Main
99 System.Threading.Timer,4.3,Transitive,Main
100 System.Xml.ReaderWriter,4.3,Transitive,Main
101 System.Xml.XDocument,4.3,Transitive,Main
102 NETStandard.Library,1.6.1,Transitive,Main
103 Microsoft.AspNetCore.Diagnostics.Abstractions,1.1.2,Transitive,Main
104 Microsoft.Extensions.DependencyInjection.Abstractions,1.1.1,Transitive,Main
105 Microsoft.Extensions.DependencyInjection,1.1.1,Transitive,Main
106 Microsoft.Extensions.FileSystemGlobbing,1.1.1,Transitive,Main
107 Microsoft.Extensions.Logging.Abstractions,1.1.2,Transitive,Main
108 Microsoft.Extensions.Logging,1.1.2,Transitive,Main
109 Microsoft.Extensions.ObjectPool,1.1.1,Transitive,Main
110 Microsoft.Extensions.PlatformAbstractions,1.1,Transitive,Main
111 Microsoft.Extensions.Primitives,1.1.1,Transitive,Main
112 Microsoft.AspNetCore.Http.Features,1.1.2,Transitive,Main
113 Microsoft.AspNetCore.Http.Abstractions,1.1.2,Transitive,Main
114 Microsoft.AspNetCore.Routing.Abstractions,1.1.2,Transitive,Main
115 Microsoft.Extensions.Configuration.Abstractions,1.1.2,Transitive,Main
116 Microsoft.AspNetCore.Hosting.Server.Abstractions,1.1.2,Transitive,Main
117 Microsoft.Extensions.Configuration,1.1.2,Transitive,Main
118 Microsoft.Extensions.Configuration.Binder,1.1.2,Transitive,Main
119 Microsoft.Extensions.Configuration.EnvironmentVariables,1.1.2,Transitive,Main
120 Microsoft.Extensions.FileProviders.Abstractions,1.1.1,Transitive,Main
121 Microsoft.AspNetCore.Hosting.Abstractions,1.1.2,Transitive,Main
122 Microsoft.Extensions.FileProviders.Physical,1.1.1,Transitive,Main
123 Microsoft.Extensions.Configuration.FileExtensions,1.1.2,Transitive,Main
124 Microsoft.Extensions.Logging.Console,1.1.2,Transitive,Main
125 Microsoft.Extensions.Options,1.1.2,Transitive,Main
126 Microsoft.Extensions.Options.ConfigurationExtensions,1.1.2,Transitive,Main
127 Microsoft.Net.Http.Headers,1.1.2,Transitive,Main
128 Microsoft.AspNetCore.Http.Extensions,1.1.2,Transitive,Main
129 Microsoft.AspNetCore.HttpOverrides,1.1.2,Transitive,Main
130 Microsoft.AspNetCore.Routing,1.1.2,Transitive,Main
131 Microsoft.AspNetCore.WebUtilities,1.1.2,Transitive,Main
132 Microsoft.AspNetCore.Diagnostics,1.1.2,Transitive,Main
133 Microsoft.AspNetCore.Http,1.1.2,Transitive,Main
134 Microsoft.AspNetCore.Hosting,1.1.2,Transitive,Main
135 Microsoft.AspNetCore.Owin,1.1.2,Direct,Main
136 Microsoft.AspNetCore.Server.IISIntegration,1.1.2,Transitive,Main
137 Microsoft.AspNetCore.Server.Kestrel,1.1.2,Transitive,Main
138 System.Xml.XmlDocument,4.3,Transitive,Main
139 Newtonsoft.Json,10.0.3,Transitive,Main
140 Microsoft.Extensions.Configuration.Json,1.1.2,Transitive,Main
141 Microsoft.AspNetCore,1.1.2,Direct,Main
142 Microsoft.Extensions.DependencyModel,1.1.2,Transitive,Main
143 System.Xml.XmlSerializer,4.3,Transitive,Main
144 Nancy,2.0.0-clinteastwood,Direct,Main
...\ No newline at end of file ...\ No newline at end of file
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 using System;
12 using System.Reflection;
13
14 [assembly: System.Reflection.AssemblyCompanyAttribute("CCE.Hosting.Netcore")]
15 [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16 [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")]
17 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18 [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19 [assembly: System.Reflection.AssemblyProductAttribute("CCE.Hosting.Netcore")]
20 [assembly: System.Reflection.AssemblyTitleAttribute("CCE.Hosting.Netcore")]
21 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22
23 // Generated by the MSBuild WriteCodeFragment class.
24
1 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Debug\netcoreapp1.1\CCE.Hosting.Netcore.deps.json
2 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Debug\netcoreapp1.1\CCE.Hosting.Netcore.runtimeconfig.json
3 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Debug\netcoreapp1.1\CCE.Hosting.Netcore.runtimeconfig.dev.json
4 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Debug\netcoreapp1.1\CCE.Hosting.Netcore.dll
5 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Debug\netcoreapp1.1\CCE.Hosting.Netcore.pdb
6 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Debug\netcoreapp1.1\CCE.dll
7 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Debug\netcoreapp1.1\CCE.pdb
8 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\Debug\netcoreapp1.1\CCE.Hosting.Netcore.AssemblyInfo.cs
9 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\Debug\netcoreapp1.1\CCE.Hosting.Netcore.dll
10 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\Debug\netcoreapp1.1\CCE.Hosting.Netcore.pdb
11 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\Debug\netcoreapp1.1\CCE.Hosting.Netcore.csprojResolveAssemblyReference.cache
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 using System;
12 using System.Reflection;
13
14 [assembly: System.Reflection.AssemblyCompanyAttribute("CCE.Hosting.Netcore")]
15 [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
16 [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")]
17 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18 [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19 [assembly: System.Reflection.AssemblyProductAttribute("CCE.Hosting.Netcore")]
20 [assembly: System.Reflection.AssemblyTitleAttribute("CCE.Hosting.Netcore")]
21 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22
23 // Generated by the MSBuild WriteCodeFragment class.
24
1 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Release\netcoreapp1.1\CCE.Hosting.Netcore.deps.json
2 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Release\netcoreapp1.1\CCE.Hosting.Netcore.runtimeconfig.json
3 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Release\netcoreapp1.1\CCE.Hosting.Netcore.runtimeconfig.dev.json
4 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Release\netcoreapp1.1\CCE.Hosting.Netcore.dll
5 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Release\netcoreapp1.1\CCE.Hosting.Netcore.pdb
6 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Release\netcoreapp1.1\CCE.dll
7 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\bin\Release\netcoreapp1.1\CCE.pdb
8 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\Release\netcoreapp1.1\CCE.Hosting.Netcore.csprojResolveAssemblyReference.cache
9 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\Release\netcoreapp1.1\CCE.Hosting.Netcore.AssemblyInfo.cs
10 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\Release\netcoreapp1.1\CCE.Hosting.Netcore.dll
11 C:\Users\felegy\ContextConfigEnv\CCE.Hosting.Netcore\obj\Release\netcoreapp1.1\CCE.Hosting.Netcore.pdb
This diff could not be displayed because it is too large.
1 Microsoft.AspNetCore
2 Microsoft.AspNetCore.Owin
3 Nancy
...\ No newline at end of file ...\ No newline at end of file
1 namespace . 1 namespace CCE.BLL.Configuration
2 { 2 {
3 public class DefaultCCEBusinessContext : ICCEBusinessContext 3 using CCE.Configuration;
4 { 4 using CCE.Data.Configuration;
5 5
6 } 6 public class DefaultCCEBusinessContext : ICCEBusinessContext
7 {
8 /// <summary>
9 /// Initializes a new instance of the <see cref="DefaultCCEBusinessContext" /> class.
10 /// </summary>
11 /// <param name="cceContext">The cce context.</param>
12 /// <param name="dataContext">The data context.</param>
13 /// <param name="environment">The environment.</param>
14 public DefaultCCEBusinessContext(ICCEContext cceContext, ICCEDataContext dataContext)
15 {
16 CCEContext = cceContext;
17 CCEDataContext = dataContext;
18 }
19
20 /// <summary>
21 /// Gets the cce context.
22 /// </summary>
23 /// <value>
24 /// The cce context.
25 /// </value>
26 public ICCEContext CCEContext { get; }
27
28 /// <summary>
29 /// Gets the cce data context.
30 /// </summary>
31 /// <value>
32 /// The cce data context.
33 /// </value>
34 public ICCEDataContext CCEDataContext { get; }
35 }
7 } 36 }
...\ No newline at end of file ...\ No newline at end of file
......
1 namespace . 1 namespace CCE.Configuration
2 { 2 {
3 public interface ICCEBusinessContext : ICCEContext 3 using CCE.Data.Configuration;
4 { 4
5 5 public interface ICCEBusinessContext
6 } 6 {
7 /// <summary>
8 /// Gets the cce context.
9 /// </summary>
10 /// <value>
11 /// The cce context.
12 /// </value>
13 ICCEContext CCEContext { get; }
14
15 /// <summary>
16 /// Gets the cce data context.
17 /// </summary>
18 /// <value>
19 /// The cce data context.
20 /// </value>
21 ICCEDataContext CCEDataContext { get; }
22 }
7 } 23 }
...\ No newline at end of file ...\ No newline at end of file
......
1 <Project Sdk="Microsoft.NET.Sdk"> 1 <Project Sdk="Microsoft.NET.Sdk">
2 <PropertyGroup> 2 <PropertyGroup>
3 <TargetFramework>netstandard1.6</TargetFramework> 3 <TargetFrameworks>netstandard1.6;net452</TargetFrameworks>
4 </PropertyGroup> 4 </PropertyGroup>
5 <Import Project="..\.paket\Paket.Restore.targets" />
5 </Project> 6 </Project>
...\ No newline at end of file ...\ No newline at end of file
......
1 namespace . 1 namespace CCE.Configuration
2 { 2 {
3 public class DefaultCCEContext : ICCEContext 3 using CCE.Configuration.Extensions;
4 {
5 private readonly ICCEEnvironment _environment
6 4
7 public DefaultCCEContext(ICCEEnvironment environment) 5 public class DefaultCCEContext : ICCEContext
8 { 6 {
9 _environment = environment; 7 /// <summary>
10 } 8 /// Gets the environment.
11 } 9 /// </summary>
10 /// <value>
11 /// The environment.
12 /// </value>
13 public ICCEEnvironment Environment { get; }
14
15 public const string ALMA_OPCIO = "alma";
16
17 public string AlmaOpcio
18 {
19 get
20 {
21 return this.Environment.GetValueOrDefault<string>("ALMA_OPCIO", ALMA_OPCIO);
22 }
23 }
24
25 /// <summary>
26 /// Initializes a new instance of the <see cref="DefaultCCEContext" /> class.
27 /// </summary>
28 /// <param name="environment">The environment.</param>
29 public DefaultCCEContext(ICCEEnvironment environment)
30 {
31 this.Environment = environment;
32 }
33 }
12 } 34 }
...\ No newline at end of file ...\ No newline at end of file
......
1 namespace CCE.Configuration
2 {
3 using System;
4 using System.Linq;
5 using System.Collections;
6 using System.Collections.Generic;
7 using System.ComponentModel;
8
9 /// <summary>
10 /// Default implementation of the <see cref="ICCEEnvironment"/> interface.
11 /// </summary>
12 public class DefaultCCEEnvironment : ICCEEnvironment
13 {
14 private readonly IDictionary<string, object> _values = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
15 private readonly IDictionary<string, object> _baseSettings;
16 private readonly bool _hasBaseSettings = false;
17
18 public DefaultCCEEnvironment(IDictionary baseSettings)
19 {
20 _baseSettings = new Dictionary<string, object>();
21 foreach( var key in baseSettings.Keys)
22 {
23 _baseSettings.Add(key.ToString(), baseSettings[key]);
24 _hasBaseSettings = true;
25 }
26 }
27
28 public DefaultCCEEnvironment(IDictionary<string, object> baseSettings)
29 {
30 _baseSettings = baseSettings;
31 _hasBaseSettings = _baseSettings.Count > 0;
32 }
33
34 public DefaultCCEEnvironment()
35 {
36 _baseSettings = null;
37 }
38
39 /// <summary>
40 /// Returns an enumerator that iterates through the environment.
41 /// </summary>
42 /// <returns>A <see cref="Dictionary{TKey,TValue}.Enumerator"/> that can be used to iterate through the environment.</returns>
43 public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
44 {
45 return _values.GetEnumerator();
46 }
47
48 /// <summary>
49 /// Returns an enumerator that iterates through the environment.
50 /// </summary>
51 /// <returns> An <see cref="IEnumerator"/> object that can be used to iterate through the environment.</returns>
52 IEnumerator IEnumerable.GetEnumerator()
53 {
54 return this.GetEnumerator();
55 }
56
57 /// <summary>
58 /// Gets the number of elements in the environment.
59 /// </summary>
60 /// <returns>The number of elements in the environment.</returns>
61 public int Count
62 {
63 get { return _values.Count; }
64 }
65
66 /// <summary>
67 /// Determines whether the environment contains an element that has the specified key.
68 /// </summary>
69 /// <returns><see langword="true"/> if the environment contains an element that has the specified key; otherwise, <see langword="false"/>.
70 /// </returns>
71 /// <param name="key">The key to retrieve.</param>
72 public bool ContainsKey(string key)
73 {
74 return _values.ContainsKey(key);
75 }
76
77 /// <summary>
78 /// Gets the value that is associated with the specified key.
79 /// </summary>
80 /// <returns><see langword="true"/> if the environment contains an element that has the specified key; otherwise, <see langword="false"/>.</returns>
81 /// <param name="key">The key to locate.</param>
82 /// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the <paramref name="value"/> parameter. This parameter is passed uninitialized.</param>
83 bool IReadOnlyDictionary<string, object>.TryGetValue(string key, out object value)
84 {
85 return this._values.TryGetValue(key, out value);
86 }
87
88 /// <summary>
89 /// Gets the element that has the specified key in the environment.
90 /// </summary>
91 /// <returns>The element that has the specified key in the environment.</returns>
92 /// <param name="key">The key to locate.</param>
93 object IReadOnlyDictionary<string, object>.this[string key]
94 {
95 get { return _values[key]; }
96 }
97
98 /// <summary>
99 /// Gets an enumerable collection that contains the keys in the environment.
100 /// </summary>
101 /// <returns>An enumerable collection that contains the keys in the environment.</returns>
102 public IEnumerable<string> Keys
103 {
104 get { return _values.Keys; }
105 }
106
107 /// <summary>
108 /// Gets an enumerable collection that contains the values in the environment.
109 /// </summary>
110 /// <returns>An enumerable collection that contains the values in the environment.</returns>
111 public IEnumerable<object> Values
112 {
113 get { return _values.Values; }
114 }
115
116 /// <summary>
117 /// Adds a <paramref name="value"/>, using a provided <paramref name="key"/>, to the environment.
118 /// </summary>
119 /// <typeparam name="T">The <see cref="Type"/> of the value to add.</typeparam>
120 /// <param name="key">The key to store the value as.</param>
121 /// <param name="value">The value to store in the environment.</param>
122 public ICCEEnvironment AddValue<T>(string key, T value)
123 {
124 _values.Add(key, value);
125 return this;
126 }
127
128 /// <summary>
129 /// Gets the value that is associated with the specified key.
130 /// </summary>
131 /// <typeparam name="T">The <see cref="Type"/> of the value to retrieve.</typeparam>
132 /// <param name="key">The key to get the value for.</param>
133 /// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.</param>
134 /// <returns><see langword="true" /> if the value could be retrieved, otherwise <see langword="false" />.</returns>
135 public virtual bool TryGetValue<T>(string key, out T value)
136 {
137 object objectValue;
138
139 if (_values.TryGetValue(key, out objectValue))
140 {
141 value = (T)objectValue;
142 return true;
143 }
144
145 if (!_hasBaseSettings || !_baseSettings.ContainsKey(key))
146 {
147 value = default(T);
148 return false;
149 }
150
151 object objValue;
152 _baseSettings.TryGetValue(key, out objValue);
153
154 try
155 {
156 var converter = TypeDescriptor.GetConverter(typeof(T));
157 if (converter != null)
158 {
159 value = (T)(objValue);
160 this.AddValue(key, value);
161
162 return true;
163 }
164
165 value = default(T);
166 return false;
167 }
168 catch (NotSupportedException)
169 {
170 value = default(T);
171 return false;
172 }
173
174 }
175 }
176 }
1 namespace CCE.Configuration.Extensions
2 {
3 /// <summary>
4 ///
5 /// </summary>
6 public static class EnvironmentExtensions
7 {
8 /// <summary>
9 /// Gets the value or default.
10 /// </summary>
11 /// <typeparam name="T"></typeparam>
12 /// <param name="environment">The environment.</param>
13 /// <param name="key">The key.</param>
14 /// <param name="defaultValue">The default value.</param>
15 /// <returns></returns>
16 public static T GetValueOrDefault<T>(this ICCEEnvironment environment, string key, T defaultValue)
17 {
18 T res;
19
20 if (environment.TryGetValue(key, out res))
21 {
22 return res;
23 }
24
25 environment.AddValue(key, defaultValue);
26 return defaultValue;
27 }
28 }
29 }
1 namespace . 1 namespace CCE.Configuration
2 { 2 {
3 public interface ICCEContext 3 public interface ICCEContext
4 { 4 {
5
6 5
7 ICCEEnvironment Environment {get;} 6 string AlmaOpcio {get;}
8 } 7
8 /// <summary>
9 /// Gets the environment.
10 /// </summary>
11 /// <value>
12 /// The environment.
13 /// </value>
14 ICCEEnvironment Environment { get; }
15 }
9 } 16 }
...\ No newline at end of file ...\ No newline at end of file
......
1 namespace . 1 namespace CCE.Configuration
2 { 2 {
3 using System; 3 using System;
4 using System.Collections.Generic; 4 using System.Collections.Generic;
5 5
6 /// <summary> 6 /// <summary>
7 /// Defines the functionality of a Nancy environment. 7 /// Defines the functionality of a Nancy environment.
8 /// </summary> 8 /// </summary>
9 public interface ICCEEnvironment : IReadOnlyDictionary<string, object>, IHideObjectMembers 9 public interface ICCEEnvironment : IReadOnlyDictionary<string, object>, IHideObjectMembers
10 { 10 {
11 /// <summary> 11 /// <summary>
12 /// Adds a <paramref name="value"/>, using a provided <paramref name="key"/>, to the environment. 12 /// Adds a <paramref name="value"/>, using a provided <paramref name="key"/>, to the environment.
13 /// </summary> 13 /// </summary>
14 /// <typeparam name="T">The <see cref="Type"/> of the value to add.</typeparam> 14 /// <typeparam name="T">The <see cref="Type"/> of the value to add.</typeparam>
15 /// <param name="key">The key to store the value as.</param> 15 /// <param name="key">The key to store the value as.</param>
16 /// <param name="value">The value to store in the environment.</param> 16 /// <param name="value">The value to store in the environment.</param>
17 void AddValue<T>(string key, T value); 17 ICCEEnvironment AddValue<T>(string key, T value);
18 18
19 /// <summary> 19 /// <summary>
20 /// Gets the value that is associated with the specified key. 20 /// Gets the value that is associated with the specified key.
21 /// </summary> 21 /// </summary>
22 /// <typeparam name="T">The <see cref="Type"/> of the value to retrieve.</typeparam> 22 /// <typeparam name="T">The <see cref="Type"/> of the value to retrieve.</typeparam>
23 /// <param name="key">The key to get the value for.</param> 23 /// <param name="key">The key to get the value for.</param>
24 /// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.</param> 24 /// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.</param>
25 /// <returns><see langword="true" /> if the value could be retrieved, otherwise <see langword="false" />.</returns> 25 /// <returns><see langword="true" /> if the value could be retrieved, otherwise <see langword="false" />.</returns>
26 bool TryGetValue<T>(string key, out T value); 26 bool TryGetValue<T>(string key, out T value);
27 } 27 }
28 } 28 }
...\ No newline at end of file ...\ No newline at end of file
......
1 namespace . 1 using CCE.Configuration;
2
3 namespace CCE.Data.Configuration
2 { 4 {
3 public abstract class DefaultCCEDataContextBase : ICCEDataContext 5 public abstract class DefaultCCEDataContextBase : ICCEDataContext
4 { 6 {
5 7 /// <summary>
6 } 8 /// Initializes a new instance of the <see cref="DefaultCCEDataContextBase" /> class.
9 /// </summary>
10 /// <param name="context">The context.</param>
11 /// <param name="environment">The environment.</param>
12 public DefaultCCEDataContextBase(ICCEContext context)
13 {
14 CCEContext = context;
15 }
16
17 /// <summary>
18 /// Gets the cce context.
19 /// </summary>
20 /// <value>
21 /// The cce context.
22 /// </value>
23 public ICCEContext CCEContext { get; }
24 }
7 } 25 }
...\ No newline at end of file ...\ No newline at end of file
......
1 namespace . 1 namespace CCE.Data.Configuration
2 { 2 {
3 public interface ICCEDataContext : ICCEContext 3 using CCE.Configuration;
4 { 4
5 5 public interface ICCEDataContext
6 } 6 {
7 /// <summary>
8 /// Gets the ccce context.
9 /// </summary>
10 /// <value>
11 /// The ccce context.
12 /// </value>
13 ICCEContext CCEContext { get; }
14 }
7 } 15 }
...\ No newline at end of file ...\ No newline at end of file
......
1 namespace . 1 namespace CCE.Data.Sql
2 { 2 {
3 using CCE.Data.Configuration;
4
3 public interface ICCESqlDataContext : ICCEDataContext 5 public interface ICCESqlDataContext : ICCEDataContext
4 { 6 {
5 7
......
1 namespace . 1 namespace CCE.Data.Sql
2 { 2 {
3 public class MsSqlCCESqlDataContext : DefaultCCEDataContextBase, ICCESqlDataContext 3 using CCE.Configuration;
4 { 4 using CCE.Data.Configuration;
5 5
6 } 6 public class MsSqlCCESqlDataContext : DefaultCCEDataContextBase, ICCESqlDataContext
7 {
8 /// <summary>
9 /// Initializes a new instance of the <see cref="MsSqlCCESqlDataContext" /> class.
10 /// </summary>
11 /// <param name="context">The context.</param>
12 /// <param name="environment">The environment.</param>
13 public MsSqlCCESqlDataContext(ICCEContext context) : base(context)
14 {
15
16 }
17 }
7 } 18 }
...\ No newline at end of file ...\ No newline at end of file
......
1 namespace CCE 1 namespace CCE
2 { 2 {
3 using System; 3 using System;
4 using System.ComponentModel; 4 using System.ComponentModel;
5 5
6 /// <summary> 6 /// <summary>
7 /// Helper interface used to hide the base <see cref="object"/> members from the fluent API to make it much cleaner 7 /// Helper interface used to hide the base <see cref="object"/> members from the fluent API to make it much cleaner
8 /// in Visual Studio intellisense. 8 /// in Visual Studio intellisense.
9 /// </summary> 9 /// </summary>
10 /// <remarks>Created by Daniel Cazzulino http://www.clariusconsulting.net/blogs/kzu/archive/2008/03/10/58301.aspx</remarks> 10 /// <remarks>Created by Daniel Cazzulino http://www.clariusconsulting.net/blogs/kzu/archive/2008/03/10/58301.aspx</remarks>
11 [EditorBrowsable(EditorBrowsableState.Never)] 11 [EditorBrowsable(EditorBrowsableState.Never)]
12 public interface IHideObjectMembers 12 public interface IHideObjectMembers
13 { 13 {
14 /// <summary> 14 /// <summary>
15 /// Hides the <see cref="Equals"/> method. 15 /// Hides the <see cref="Equals"/> method.
16 /// </summary> 16 /// </summary>
17 [EditorBrowsable(EditorBrowsableState.Never)] 17 [EditorBrowsable(EditorBrowsableState.Never)]
18 bool Equals(object obj); 18 bool Equals(object obj);
19 19
20 /// <summary> 20 /// <summary>
21 /// Hides the <see cref="GetHashCode"/> method. 21 /// Hides the <see cref="GetHashCode"/> method.
22 /// </summary> 22 /// </summary>
23 [EditorBrowsable(EditorBrowsableState.Never)] 23 [EditorBrowsable(EditorBrowsableState.Never)]
24 int GetHashCode(); 24 int GetHashCode();
25 25
26 /// <summary> 26 /// <summary>
27 /// Hides the <see cref="GetType"/> method. 27 /// Hides the <see cref="GetType"/> method.
28 /// </summary> 28 /// </summary>
29 [EditorBrowsable(EditorBrowsableState.Never)] 29 [EditorBrowsable(EditorBrowsableState.Never)]
30 Type GetType(); 30 Type GetType();
31 31
32 /// <summary> 32 /// <summary>
33 /// Hides the <see cref="ToString"/> method. 33 /// Hides the <see cref="ToString"/> method.
34 /// </summary> 34 /// </summary>
35 [EditorBrowsable(EditorBrowsableState.Never)] 35 [EditorBrowsable(EditorBrowsableState.Never)]
36 string ToString(); 36 string ToString();
37 } 37 }
38 } 38 }
...\ No newline at end of file ...\ No newline at end of file
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 <?xml version="1.0" encoding="utf-8"?>
2 <configuration>
3 <packageSources>
4 <clear />
5 </packageSources>
6 <disabledPackageSources>
7 <clear />
8 </disabledPackageSources>
9 </configuration>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4 <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5 <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6 <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">C:\Users\felegy\ContextConfigEnv\CCE\obj\project.assets.json</ProjectAssetsFile>
7 <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8 <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\felegy\.nuget\packages\</NuGetPackageFolders>
9 <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10 <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">4.2.0</NuGetToolVersion>
11 </PropertyGroup>
12 <PropertyGroup>
13 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
14 </PropertyGroup>
15 </Project>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>
4 <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5 </PropertyGroup>
6 </Project>
...\ No newline at end of file ...\ No newline at end of file
1 Microsoft.NETCore.Platforms,1.1,Transitive,Main
2 Microsoft.NETCore.Targets,1.1,Transitive,Main
3 System.Runtime,4.3,Transitive,Main
4 System.Collections,4.3,Transitive,Main
5 System.ComponentModel,4.3,Transitive,Main
6 System.Diagnostics.Debug,4.3,Transitive,Main
7 System.Globalization,4.3,Transitive,Main
8 System.Reflection.Primitives,4.3,Transitive,Main
9 System.Runtime.Extensions,4.3,Transitive,Main
10 System.Runtime.Handles,4.3,Transitive,Main
11 System.Text.Encoding,4.3,Transitive,Main
12 System.Threading.Tasks,4.3,Transitive,Main
13 System.IO,4.3,Transitive,Main
14 System.Reflection,4.3,Transitive,Main
15 System.Reflection.Extensions,4.3,Transitive,Main
16 System.Reflection.TypeExtensions,4.3,Transitive,Main
17 System.Resources.ResourceManager,4.3,Transitive,Main
18 System.ComponentModel.Primitives,4.3,Transitive,Main
19 System.Linq,4.3,Transitive,Main
20 System.Runtime.InteropServices,4.3,Transitive,Main
21 System.Globalization.Extensions,4.3,Transitive,Main
22 System.Threading,4.3,Transitive,Main
23 System.Collections.NonGeneric,4.3,Transitive,Main
24 System.Collections.Specialized,4.3,Transitive,Main
25 System.ComponentModel.TypeConverter,4.3,Direct,Main
...\ No newline at end of file ...\ No newline at end of file
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 using System;
12 using System.Reflection;
13
14 [assembly: System.Reflection.AssemblyCompanyAttribute("CCE")]
15 [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16 [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")]
17 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18 [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19 [assembly: System.Reflection.AssemblyProductAttribute("CCE")]
20 [assembly: System.Reflection.AssemblyTitleAttribute("CCE")]
21 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22
23 // Generated by the MSBuild WriteCodeFragment class.
24
1 C:\Users\felegy\ContextConfigEnv\CCE\bin\Debug\net452\CCE.dll
2 C:\Users\felegy\ContextConfigEnv\CCE\bin\Debug\net452\CCE.pdb
3 C:\Users\felegy\ContextConfigEnv\CCE\bin\Debug\net452\System.ComponentModel.Primitives.dll
4 C:\Users\felegy\ContextConfigEnv\CCE\bin\Debug\net452\System.ComponentModel.TypeConverter.dll
5 C:\Users\felegy\ContextConfigEnv\CCE\obj\Debug\net452\CCE.AssemblyInfo.cs
6 C:\Users\felegy\ContextConfigEnv\CCE\obj\Debug\net452\CCE.dll
7 C:\Users\felegy\ContextConfigEnv\CCE\obj\Debug\net452\CCE.pdb
8 C:\Users\felegy\ContextConfigEnv\CCE\obj\Debug\net452\CCE.csprojResolveAssemblyReference.cache
No preview for this file type
No preview for this file type
1 9a82e2e0967ce1e190582254bde5532838ed17ab
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 using System;
12 using System.Reflection;
13
14 [assembly: System.Reflection.AssemblyCompanyAttribute("CCE")]
15 [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16 [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")]
17 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18 [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19 [assembly: System.Reflection.AssemblyProductAttribute("CCE")]
20 [assembly: System.Reflection.AssemblyTitleAttribute("CCE")]
21 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22
23 // Generated by the MSBuild WriteCodeFragment class.
24
1 C:\Users\felegy\ContextConfigEnv\CCE\bin\Debug\netstandard1.6\CCE.deps.json
2 C:\Users\felegy\ContextConfigEnv\CCE\obj\Debug\netstandard1.6\CCE.AssemblyInfo.cs
3 C:\Users\felegy\ContextConfigEnv\CCE\bin\Debug\netstandard1.6\CCE.dll
4 C:\Users\felegy\ContextConfigEnv\CCE\bin\Debug\netstandard1.6\CCE.pdb
5 C:\Users\felegy\ContextConfigEnv\CCE\obj\Debug\netstandard1.6\CCE.dll
6 C:\Users\felegy\ContextConfigEnv\CCE\obj\Debug\netstandard1.6\CCE.pdb
7 C:\Users\felegy\ContextConfigEnv\CCE\obj\Debug\netstandard1.6\CCE.csprojResolveAssemblyReference.cache
No preview for this file type
No preview for this file type
1 2cb5a9e7361609b860ff7a3d477e933c4632f782
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 using System;
12 using System.Reflection;
13
14 [assembly: System.Reflection.AssemblyCompanyAttribute("CCE")]
15 [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
16 [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")]
17 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18 [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19 [assembly: System.Reflection.AssemblyProductAttribute("CCE")]
20 [assembly: System.Reflection.AssemblyTitleAttribute("CCE")]
21 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22
23 // Generated by the MSBuild WriteCodeFragment class.
24
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.