Fork me on GitHubEpicdominant domains
APIEpic.OrganizationOrganizationBaseEndWorkingSession(IPrincipal, IWorkingSession)

EndWorkingSession Method (owner, workingSession)
Ends the working session. Template method.

Assembly: Epic.Core

Declaration Syntax
C#
public void EndWorkingSession(
	IPrincipal owner,
	IWorkingSession workingSession
)
Parameters
owner (IPrincipal)
The owner.
workingSession (IWorkingSession)
The working session to end.
Remarks

Before disposing the working session will call the BeforeWorkingSessionEnd(IPrincipal, WorkingSessionBase) so that derived class will be able to log the operation.

This could be usefult if you have to lock accesses to the enterprise to specific users.

Exceptions
ExceptionCondition
ArgumentNullExceptionEither owner or workingSession are nullNothingnullptr.
InvalidOperationExceptionowner can not end workingSession.
blog comments powered by Disqus