in generators/CoreCLRStatefulActor/index.js [176:230]
function(err, data) {
parser.parseString(data, function(err, result) {
if (err) {
return console.log(err);
}
result["ApplicationManifest"]["ServiceManifestImport"][
result["ApplicationManifest"]["ServiceManifestImport"].length
] = {
ServiceManifestRef: [
{
$: {
ServiceManifestName: servicePackage,
ServiceManifestVersion: "1.0.0"
}
}
]
};
result["ApplicationManifest"]["DefaultServices"][0]["Service"][
result["ApplicationManifest"]["DefaultServices"][0][
"Service"
].length
] = {
$: { Name: serviceName },
StatefulService: [
{
$: {
ServiceTypeName: serviceTypeName,
TargetReplicaSetSize: "3",
MinReplicaSetSize: "2"
},
UniformInt64Partition: [
{
$: {
PartitionCount: "1",
LowKey: "-9223372036854775808",
HighKey: "9223372036854775807"
}
}
]
}
]
};
var builder = new xml2js.Builder();
var xml = builder.buildObject(result);
fs.writeFile(
path.join(appPackage, appPackagePath, "ApplicationManifest.xml"),
xml,
function(err) {
if (err) {
return console.log(err);
}
}
);
});
}