M
med111
Hello,
This is my understanding of SDK about the update of a project in PSI:
There are three main steps when we use the PSI to update data of the
project:
1-Checkin the project: CheckOutProject
2-Update the project: QueueUpdateProject
3-Checkout the project: QueueCheckInProject
Each method has SeesionUID as parameter: SessionUID will identify the
session in which the job will be executed.
The SeesionUID should be the same for the three methods
(CheckOutProject, QueueUpdateProject and QueueCheckInProject).
For simple winforms application: we can create new sessionUID
(Guid.NewGuid ()) and use this SessionUID for the three method: this
is tested successfully and works fine.
For server side event (like OnPublishing): we don't need to checkout
the project (since it is already checked out by the user who publishs
the project). We need only to use the QueueUpdateProject.But to do
this; we need to use the right SessionUID.
So,how can we find the sessionUID of a checkedout project?
How can I find this SessionUID in OnPublishing event?
Thanks.
This is my understanding of SDK about the update of a project in PSI:
There are three main steps when we use the PSI to update data of the
project:
1-Checkin the project: CheckOutProject
2-Update the project: QueueUpdateProject
3-Checkout the project: QueueCheckInProject
Each method has SeesionUID as parameter: SessionUID will identify the
session in which the job will be executed.
The SeesionUID should be the same for the three methods
(CheckOutProject, QueueUpdateProject and QueueCheckInProject).
For simple winforms application: we can create new sessionUID
(Guid.NewGuid ()) and use this SessionUID for the three method: this
is tested successfully and works fine.
For server side event (like OnPublishing): we don't need to checkout
the project (since it is already checked out by the user who publishs
the project). We need only to use the QueueUpdateProject.But to do
this; we need to use the right SessionUID.
So,how can we find the sessionUID of a checkedout project?
How can I find this SessionUID in OnPublishing event?
Thanks.