Skip to content

Commit 38dbca8

Browse files
committed
Add project files.
1 parent 6c71617 commit 38dbca8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2629
-0
lines changed

Voting.sln

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{A07B5EB6-E848-4116-A8D0-A826331D98C6}") = "Voting", "Voting\Voting.sfproj", "{CCC6DDE6-A7AE-4C6D-BC39-D93782C7A252}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VotingService", "VotingService\VotingService.csproj", "{07213B2D-9316-45E3-B526-6BE4B936AB47}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VotingState", "VotingState\VotingState.csproj", "{BA70DF97-1676-4B63-932E-20ED9B35423B}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|x64 = Debug|x64
15+
Release|x64 = Release|x64
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{CCC6DDE6-A7AE-4C6D-BC39-D93782C7A252}.Debug|x64.ActiveCfg = Debug|x64
19+
{CCC6DDE6-A7AE-4C6D-BC39-D93782C7A252}.Debug|x64.Build.0 = Debug|x64
20+
{CCC6DDE6-A7AE-4C6D-BC39-D93782C7A252}.Debug|x64.Deploy.0 = Debug|x64
21+
{CCC6DDE6-A7AE-4C6D-BC39-D93782C7A252}.Release|x64.ActiveCfg = Release|x64
22+
{CCC6DDE6-A7AE-4C6D-BC39-D93782C7A252}.Release|x64.Build.0 = Release|x64
23+
{CCC6DDE6-A7AE-4C6D-BC39-D93782C7A252}.Release|x64.Deploy.0 = Release|x64
24+
{07213B2D-9316-45E3-B526-6BE4B936AB47}.Debug|x64.ActiveCfg = Debug|x64
25+
{07213B2D-9316-45E3-B526-6BE4B936AB47}.Debug|x64.Build.0 = Debug|x64
26+
{07213B2D-9316-45E3-B526-6BE4B936AB47}.Release|x64.ActiveCfg = Release|x64
27+
{07213B2D-9316-45E3-B526-6BE4B936AB47}.Release|x64.Build.0 = Release|x64
28+
{BA70DF97-1676-4B63-932E-20ED9B35423B}.Debug|x64.ActiveCfg = Debug|x64
29+
{BA70DF97-1676-4B63-932E-20ED9B35423B}.Debug|x64.Build.0 = Debug|x64
30+
{BA70DF97-1676-4B63-932E-20ED9B35423B}.Release|x64.ActiveCfg = Release|x64
31+
{BA70DF97-1676-4B63-932E-20ED9B35423B}.Release|x64.Build.0 = Release|x64
32+
EndGlobalSection
33+
GlobalSection(SolutionProperties) = preSolution
34+
HideSolutionNode = FALSE
35+
EndGlobalSection
36+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ApplicationManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ApplicationTypeName="VotingType" ApplicationTypeVersion="1.0.2" xmlns="http://schemas.microsoft.com/2011/01/fabric">
3+
<Parameters>
4+
<Parameter Name="VotingState_MinReplicaSetSize" DefaultValue="3" />
5+
<Parameter Name="VotingState_PartitionCount" DefaultValue="1" />
6+
<Parameter Name="VotingState_TargetReplicaSetSize" DefaultValue="3" />
7+
<Parameter Name="VotingService_InstanceCount" DefaultValue="-1" />
8+
</Parameters>
9+
<!-- Import the ServiceManifest from the ServicePackage. The ServiceManifestName and ServiceManifestVersion
10+
should match the Name and Version attributes of the ServiceManifest element defined in the
11+
ServiceManifest.xml file. -->
12+
<ServiceManifestImport>
13+
<ServiceManifestRef ServiceManifestName="VotingStatePkg" ServiceManifestVersion="1.0.0" />
14+
<ConfigOverrides />
15+
</ServiceManifestImport>
16+
<ServiceManifestImport>
17+
<ServiceManifestRef ServiceManifestName="VotingServicePkg" ServiceManifestVersion="1.0.2" />
18+
<ConfigOverrides />
19+
</ServiceManifestImport>
20+
<DefaultServices>
21+
<!-- The section below creates instances of service types, when an instance of this
22+
application type is created. You can also create one or more instances of service type using the
23+
ServiceFabric PowerShell module.
24+
25+
The attribute ServiceTypeName below must match the name defined in the imported ServiceManifest.xml file. -->
26+
<Service Name="VotingState">
27+
<StatefulService ServiceTypeName="VotingStateType" TargetReplicaSetSize="[VotingState_TargetReplicaSetSize]" MinReplicaSetSize="[VotingState_MinReplicaSetSize]">
28+
<UniformInt64Partition PartitionCount="[VotingState_PartitionCount]" LowKey="-9223372036854775808" HighKey="9223372036854775807" />
29+
</StatefulService>
30+
</Service>
31+
<Service Name="VotingService">
32+
<StatelessService ServiceTypeName="VotingServiceType" InstanceCount="[VotingService_InstanceCount]">
33+
<SingletonPartition />
34+
</StatelessService>
35+
</Service>
36+
</DefaultServices>
37+
</ApplicationManifest>
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/Voting" xmlns="http://schemas.microsoft.com/2011/01/fabric">
3+
<Parameters>
4+
<Parameter Name="VotingState_PartitionCount" Value="1" />
5+
<Parameter Name="VotingState_MinReplicaSetSize" Value="3" />
6+
<Parameter Name="VotingState_TargetReplicaSetSize" Value="3" />
7+
<Parameter Name="VotingService_InstanceCount" Value="-1" />
8+
</Parameters>
9+
</Application>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/Voting" xmlns="http://schemas.microsoft.com/2011/01/fabric">
3+
<Parameters>
4+
<Parameter Name="VotingState_PartitionCount" Value="1" />
5+
<Parameter Name="VotingState_MinReplicaSetSize" Value="1" />
6+
<Parameter Name="VotingState_TargetReplicaSetSize" Value="1" />
7+
<Parameter Name="VotingService_InstanceCount" Value="1" />
8+
</Parameters>
9+
</Application>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/Voting" xmlns="http://schemas.microsoft.com/2011/01/fabric">
3+
<Parameters>
4+
<Parameter Name="VotingState_PartitionCount" Value="1" />
5+
<Parameter Name="VotingState_MinReplicaSetSize" Value="3" />
6+
<Parameter Name="VotingState_TargetReplicaSetSize" Value="3" />
7+
<Parameter Name="VotingService_InstanceCount" Value="1" />
8+
</Parameters>
9+
</Application>

Voting/PublishProfiles/Cloud.xml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<PublishProfile xmlns="http://schemas.microsoft.com/2015/05/fabrictools">
3+
<!-- ClusterConnectionParameters allows you to specify the PowerShell parameters to use when connecting to the Service Fabric cluster.
4+
Valid parameters are any that are accepted by the Connect-ServiceFabricCluster cmdlet.
5+
6+
For a remote cluster, you would need to specify the appropriate parameters for that specific cluster.
7+
For example: <ClusterConnectionParameters ConnectionEndpoint="mycluster.westus.cloudapp.azure.com:19000" />
8+
9+
Example showing parameters for a cluster that uses certificate security:
10+
<ClusterConnectionParameters ConnectionEndpoint="mycluster.westus.cloudapp.azure.com:19000"
11+
X509Credential="true"
12+
ServerCertThumbprint="0123456789012345678901234567890123456789"
13+
FindType="FindByThumbprint"
14+
FindValue="9876543210987654321098765432109876543210"
15+
StoreLocation="CurrentUser"
16+
StoreName="My" />
17+
18+
Example showing parameters for a cluster that uses Azure Active Directory (AAD) security:
19+
<ClusterConnectionParameters ConnectionEndpoint="mycluster.westus.cloudapp.azure.com:19000"
20+
AzureActiveDirectory="true"
21+
ServerCertThumbprint="0123456789012345678901234567890123456789" />
22+
-->
23+
<ClusterConnectionParameters />
24+
<ApplicationParameterFile Path="..\ApplicationParameters\Cloud.xml" />
25+
</PublishProfile>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<PublishProfile xmlns="http://schemas.microsoft.com/2015/05/fabrictools">
3+
<!-- ClusterConnectionParameters allows you to specify the PowerShell parameters to use when connecting to the Service Fabric cluster.
4+
Valid parameters are any that are accepted by the Connect-ServiceFabricCluster cmdlet.
5+
6+
For a local cluster, you would typically not use any parameters.
7+
For example: <ClusterConnectionParameters />
8+
-->
9+
<ClusterConnectionParameters />
10+
<ApplicationParameterFile Path="..\ApplicationParameters\Local.1Node.xml" />
11+
</PublishProfile>
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<PublishProfile xmlns="http://schemas.microsoft.com/2015/05/fabrictools">
3+
<!-- ClusterConnectionParameters allows you to specify the PowerShell parameters to use when connecting to the Service Fabric cluster.
4+
Valid parameters are any that are accepted by the Connect-ServiceFabricCluster cmdlet.
5+
6+
For a local cluster, you would typically not use any parameters.
7+
For example: <ClusterConnectionParameters />
8+
-->
9+
<ClusterConnectionParameters />
10+
<ApplicationParameterFile Path="..\ApplicationParameters\Local.5Node.xml" />
11+
<UpgradeDeployment Mode="UnmonitoredAuto" Enabled="true">
12+
<Parameters UpgradeReplicaSetCheckTimeoutSec="1" Force="True" />
13+
</UpgradeDeployment>
14+
</PublishProfile>

0 commit comments

Comments
 (0)