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
Exception | Condition |
---|---|
ArgumentNullException | Either owner or
workingSession are nullNothingnullptr. |
InvalidOperationException | owner can not end
workingSession. |