Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
d9a60d34
Commit
d9a60d34
authored
Dec 16, 2016
by
yuleyule66
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add server project
parent
ccc41b72
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
0 deletions
+110
-0
Cap.sln
Cap.sln
+7
-0
Cap.Consistency.Server.xproj
src/Cap.Consistency.Server/Cap.Consistency.Server.xproj
+22
-0
ConsistencyServer.cs
src/Cap.Consistency.Server/ConsistencyServer.cs
+39
-0
AssemblyInfo.cs
src/Cap.Consistency.Server/Properties/AssemblyInfo.cs
+26
-0
project.json
src/Cap.Consistency.Server/project.json
+16
-0
No files found.
Cap.sln
View file @
d9a60d34
...
@@ -21,6 +21,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{9E5A7F
...
@@ -21,6 +21,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{9E5A7F
test\Shared\TestConsistencyMessage.cs = test\Shared\TestConsistencyMessage.cs
test\Shared\TestConsistencyMessage.cs = test\Shared\TestConsistencyMessage.cs
EndProjectSection
EndProjectSection
EndProject
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Cap.Consistency.Server", "src\Cap.Consistency.Server\Cap.Consistency.Server.xproj", "{55CF2C48-D390-40CF-8AD9-FA39F90E9217}"
EndProject
Global
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Any CPU = Debug|Any CPU
...
@@ -35,6 +37,10 @@ Global
...
@@ -35,6 +37,10 @@ Global
{3A444CF8-1611-407F-8D32-5D0CDC3DD49D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A444CF8-1611-407F-8D32-5D0CDC3DD49D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A444CF8-1611-407F-8D32-5D0CDC3DD49D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A444CF8-1611-407F-8D32-5D0CDC3DD49D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A444CF8-1611-407F-8D32-5D0CDC3DD49D}.Release|Any CPU.Build.0 = Release|Any CPU
{3A444CF8-1611-407F-8D32-5D0CDC3DD49D}.Release|Any CPU.Build.0 = Release|Any CPU
{55CF2C48-D390-40CF-8AD9-FA39F90E9217}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{55CF2C48-D390-40CF-8AD9-FA39F90E9217}.Debug|Any CPU.Build.0 = Debug|Any CPU
{55CF2C48-D390-40CF-8AD9-FA39F90E9217}.Release|Any CPU.ActiveCfg = Release|Any CPU
{55CF2C48-D390-40CF-8AD9-FA39F90E9217}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
HideSolutionNode = FALSE
...
@@ -43,5 +49,6 @@ Global
...
@@ -43,5 +49,6 @@ Global
{E8AF8611-0EA4-4B19-BC48-87C57A87DC66} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
{E8AF8611-0EA4-4B19-BC48-87C57A87DC66} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
{3A444CF8-1611-407F-8D32-5D0CDC3DD49D} = {C09CDAB0-6DD4-46E9-B7F3-3EF2A4741EA0}
{3A444CF8-1611-407F-8D32-5D0CDC3DD49D} = {C09CDAB0-6DD4-46E9-B7F3-3EF2A4741EA0}
{9E5A7F49-8E31-4A71-90CC-1DA9AEDA99EE} = {C09CDAB0-6DD4-46E9-B7F3-3EF2A4741EA0}
{9E5A7F49-8E31-4A71-90CC-1DA9AEDA99EE} = {C09CDAB0-6DD4-46E9-B7F3-3EF2A4741EA0}
{55CF2C48-D390-40CF-8AD9-FA39F90E9217} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
EndGlobalSection
EndGlobalSection
EndGlobal
EndGlobal
src/Cap.Consistency.Server/Cap.Consistency.Server.xproj
0 → 100644
View file @
d9a60d34
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"14.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<VisualStudioVersion
Condition=
"'$(VisualStudioVersion)' == ''"
>
14.0
</VisualStudioVersion>
<VSToolsPath
Condition=
"'$(VSToolsPath)' == ''"
>
$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
</VSToolsPath>
</PropertyGroup>
<Import
Project=
"$(VSToolsPath)\DotNet\Microsoft.DotNet.Props"
Condition=
"'$(VSToolsPath)' != ''"
/>
<PropertyGroup
Label=
"Globals"
>
<ProjectGuid>
{55CF2C48-D390-40CF-8AD9-FA39F90E9217}
</ProjectGuid>
<ProjectTypeGuids>
{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}
</ProjectTypeGuids>
<RootNamespace>
Cap.Consistency.Server
</RootNamespace>
<BaseIntermediateOutputPath
Condition=
"'$(BaseIntermediateOutputPath)'=='' "
>
.\obj
</BaseIntermediateOutputPath>
<OutputPath
Condition=
"'$(OutputPath)'=='' "
>
.\bin\
</OutputPath>
<TargetFrameworkVersion>
v4.5.1
</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<SchemaVersion>
2.0
</SchemaVersion>
</PropertyGroup>
<Import
Project=
"$(VSToolsPath)\DotNet\Microsoft.DotNet.targets"
Condition=
"'$(VSToolsPath)' != ''"
/>
</Project>
src/Cap.Consistency.Server/ConsistencyServer.cs
0 → 100644
View file @
d9a60d34
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.AspNetCore.Hosting.Server
;
using
Microsoft.AspNetCore.Http.Features
;
using
Microsoft.Extensions.Logging
;
namespace
Cap.Consistency.Server
{
public
class
ConsistencyServer
:
IServer
{
public
ConsistencyServer
(
IApplicationLifetime
applicationLifetime
,
ILoggerFactory
loggerFactory
)
{
if
(
applicationLifetime
==
null
)
{
throw
new
ArgumentNullException
(
nameof
(
applicationLifetime
));
}
if
(
loggerFactory
==
null
)
{
throw
new
ArgumentNullException
(
nameof
(
loggerFactory
));
}
}
public
void
Start
<
TContext
>(
IHttpApplication
<
TContext
>
application
)
{
throw
new
NotImplementedException
();
}
public
IFeatureCollection
Features
{
get
;
}
public
void
Dispose
()
{
throw
new
NotImplementedException
();
}
}
}
\ No newline at end of file
src/Cap.Consistency.Server/Properties/AssemblyInfo.cs
0 → 100644
View file @
d9a60d34
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[
assembly
:
AssemblyTitle
(
"Cap.Consistency.Server"
)]
[
assembly
:
AssemblyDescription
(
""
)]
[
assembly
:
AssemblyConfiguration
(
""
)]
[
assembly
:
AssemblyCompany
(
""
)]
[
assembly
:
AssemblyProduct
(
"Cap.Consistency.Server"
)]
[
assembly
:
AssemblyCopyright
(
"Copyright © 2016"
)]
[
assembly
:
AssemblyTrademark
(
""
)]
[
assembly
:
AssemblyCulture
(
""
)]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[
assembly
:
ComVisible
(
false
)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[
assembly
:
Guid
(
"55CF2C48-D390-40CF-8AD9-FA39F90E9217"
)]
\ No newline at end of file
src/Cap.Consistency.Server/project.json
0 → 100644
View file @
d9a60d34
{
"version"
:
"1.0.0-*"
,
"buildOptions"
:
{
"debugType"
:
"portable"
},
"dependencies"
:
{
"Microsoft.AspNetCore.Hosting"
:
"1.1.0-*"
,
"Microsoft.Extensions.Logging.Abstractions"
:
"1.1.0-*"
,
"NETStandard.Library"
:
"1.6.1"
},
"frameworks"
:
{
"netstandard1.6"
:
{
"imports"
:
"dnxcore50"
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment