The same component, if I use Content Manager Explorer to publish it, its "Publish Status" changed. But if I use the Core Service to publish it, its "Publish Status" does not change.
RenderInstructionData render = new RenderInstructionData {
RenderMode = RenderMode.Publish
};
ResolveInstructionData rid = new ResolveInstructionData {
IncludeChildPublications = false
};
PublishInstructionData pid = new PublishInstructionData {
DeployAt = DateTime.Now,
MaximumNumberOfRenderFailures = 0,
ResolveInstruction = rid,
RenderInstruction = render
};
_client.Publish(
new String[] { id },
pid,
targets.ToArray(),
PublishPriority.Low,
new ReadOptions()
);
Id is The Component ID
I really do not understand why the GUI and my code are showing different behavior. Are there any differences between these two ways?