A session is literally a conversation. How can we understand it in our system? A session is an interaction.ProgramThe interaction between the client and the server is a session. The session survival and the client and the server are widely used in the software industry. sessions are very familiar to the Web, A session represents an interaction between a web server and a Web browser, based on a website (application, during the customer's browsing process, sessions provide some parameters on the client and server to browse the Web page. A session starts when the visitor browses the website and ends when the visitor leaves the website.
In agileeas. in the. NET platform, we use this session method to manage applications and lifecycles with customers (users). At the same time, we provide session-related resources for programs and customers, the concept of session is somewhat abstract. It is simply understood as the process in which the service system interacts with the calling customer at work. We call it a session, which can also be understood in the development process, smarteas.. net resource management platform is a server that loads and runs from a module to releases a module during the customer's (fast functional model) operation. In the same process, a session provides the connection information of both parties for the service and the customer, and the customer processes data based on the resources in the session.
We can understand agileeas in a very simple way.. NET platform sessions can be understood as agileeas.. NET platform, the session or application context provides the required resources (such as data environment and ORM accessors) for the application to run the system, and objects (such as ORM entities) based on the session object interface) by default, session resource running activity is used.
The following is the structure of the session class in the basic middleware:
Isession
System session interface, which is defined as follows:
The session interface defines the server and client, Session Context, and sessioncontex of the Session, and sessionresourcecollection ). It also defines the start method and end method of the session.
IServer
System session server interface, which is defined as follows:
IServer is the server end of a system session. It defines the server name, location information, and session set established on the server in the interface. One to N sessions can be established on an iServer, that is to say, the server can communicate with N clients simultaneously.
Iclient
System session customer interface, which is defined as follows:
Iclient is a client for system sessions. It defines the customer's name in the interface and the session and session parameter information held by the customer.
Isessionresource
System session resource interface, which is defined as follows:
Isessionresource defines the resources required to establish a session, the resource identifier of the resources in the interface, in the specific session resources (such as database connections, Orm accessors, etc) if this interface is implemented during the implementation process, session resources will provide users with access to relevant resources during the session.
Isessionobject
System Session object interface, which is defined as follows:
Isessionresource defines the session object generated on the session. The session object is a type of object that uses the session to survive and perform some functional operations. For example, you can use the database in the session resource to access the database connected to the resource.
QQ: 15118502
Link: agileeas. NET application development platform Introduction
Agile parallel development method of agileeas. net
Agile Software Engineering Lab