Class: AssMaintainer::InfoBase::ServerIb::EnterpriseServers::Wrappers::Session Private
- Inherits:
-
Object
- Object
- AssMaintainer::InfoBase::ServerIb::EnterpriseServers::Wrappers::Session
- Includes:
- Support::SendToOle
- Defined in:
- lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Wrapper for 1C:Enterprise ISessionInfo ole object
Instance Attribute Summary collapse
-
#cluster ⇒ EnterpriseServers::Cluster
readonly
private
registred.
-
#ole ⇒ Object
readonly
private
ISessionInfoole object. -
#sagent ⇒ EnterpriseServers::ServerAgent
readonly
private
registred.
Instance Method Summary collapse
-
#initialize(ole, cluster) ⇒ Session
constructor
private
A new instance of Session.
-
#terminate ⇒ Object
private
Terminate session.
- #to_session(infobase) ⇒ InfoBase::Session private
Methods included from Support::SendToOle
Constructor Details
#initialize(ole, cluster) ⇒ Session
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Session.
59 60 61 |
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 59 def initialize(ole, cluster) @ole, @cluster, @sagent = ole, cluster, cluster.sagent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AssMaintainer::InfoBase::ServerIb::EnterpriseServers::Support::SendToOle
Instance Attribute Details
#cluster ⇒ EnterpriseServers::Cluster (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
registred
51 52 53 |
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 51 def cluster @cluster end |
#ole ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns ISessionInfo ole object.
46 47 48 |
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 46 def ole @ole end |
#sagent ⇒ EnterpriseServers::ServerAgent (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
registred
56 57 58 |
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 56 def sagent @sagent end |
Instance Method Details
#terminate ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Terminate session
64 65 66 67 |
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 64 def terminate sagent.TerminateSession(cluster.ole, ole) rescue WIN32OLERuntimeError end |
#to_session(infobase) ⇒ InfoBase::Session
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
71 72 73 74 |
# File 'lib/ass_maintainer/info_base/server_ib/enterprise_servers.rb', line 71 def to_session(infobase) InfoBase::Session .new SessionId(), AppId(), Host(), UserName(), infobase end |