Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Implementation method of Autofac-based service manager supporting demand loading

A technology of service manager and implementation method, which is applied in the field of service managers that support on-demand loading based on Autofac, can solve problems such as post-downloading, cannot use decoupling framework, etc., to avoid performance problems, be easy to promote, and have strong practicability. Effect

Active Publication Date: 2017-05-31
INSPUR COMMON SOFTWARE
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Based on this, an implementation method of a service manager that supports on-demand loading based on Autofac is provided, and a service manager that supports on-demand loading based on the Autofac framework is provided to solve the problem that the program file may not be downloaded later in the smart client mode. Problems with using a decoupled framework

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method of Autofac-based service manager supporting demand loading

Examples

Experimental program
Comparison scheme
Effect test

example

[0056] Example: The system provides an internationalized language service interface, and function A needs to call the method of this interface.

[0057] First define the service interface-implementation class configuration, the autofac configuration in App.Config is as follows:

[0058]

[0059]

[0060]

[0061]

[0062]

[0063] <component type="Inspur.GSP.Gsf.I18N.Framework.RemoteClient.LanguageService,Inspur.GSP.Gsf.I18N.Framework.RemoteClient"

[0064] instance-scope="SINGLE-INSTANCE" service="Inspur.GSP.Gsf.I18N.Framework.Api.ILanguageService,Inspur.GSP.Gsf.I18N.Framework.Api" / >

[0065]

[0066] Then dynamic registration and analysis, the main steps of dynamic registration and analysis are as follows:

[0067] Step 1: When the service manager loads for the first time, load all configuration items into memory.

[0068] / / /

[0069] / / / Read the registration information according to the autofac configuration section

[0070] / ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an implementation method of an Autofac-based service manager supporting demand loading. The implementation method comprises the following steps: splitting a task into a plurality of subtasks, dividing a data set into a plurality of data slices, constructing independent subtask packages which can be executed in parallel according to one subtask and a corresponding data slice thereof, putting the subtask packages into a unified thread pool, and carrying out independent parallel execution. Compared with the prior art, the implementation method of the Autofac-based service manager supporting demand loading has the advantages that resource of an existing system can be fully utilized, and batch processing performance is improved. Subtask execution state and error information are recorded in a parallel execution process, tracing and fault tolerance are carried out on a task execution process by virtue of data execution state and the error information, practicability is strong, and the application range is wide.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to an implementation method of a service manager supporting on-demand loading based on Autofac. Background technique [0002] Smart Client technology is an Internet-based rich client technology. On the client side, the rich client (Rich Client) technology can be used to make full use of the local resources of the client machine to provide users with a rich user interaction experience. Compared with the B / S (Browser / Server, browser / server) application program, the interface that can be presented to the user is like a GUI (Graphics User Interface, graphical user interface) program interface installed on the local desktop system. There are many The complex interface interaction elements such as tree, menu, grid, etc. greatly enhance the user-friendliness and interactivity, which can meet various personalized needs of user interface interaction, and can provide powerful functions suc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44578
Inventor 王延东
Owner INSPUR COMMON SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products