惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
罗磊的独立博客
H
Help Net Security
I
Intezer
G
Google Developers Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
Troy Hunt's Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
News and Events Feed by Topic
J
Java Code Geeks
S
Security Affairs
T
The Blog of Author Tim Ferriss
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
Docker
The GitHub Blog
The GitHub Blog
F
Full Disclosure
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs
腾讯CDC
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
T
Threatpost
D
DataBreaches.Net
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
MongoDB | Blog
MongoDB | Blog
博客园 - 【当耐特】
L
LINUX DO - 最新话题
Google Online Security Blog
Google Online Security Blog
S
Schneier on Security
S
Securelist
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Help Net Security
Help Net Security
P
Proofpoint News Feed
Project Zero
Project Zero
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 叶小钗

博客园 - umlchina

.Net桌面程序自动更新NAppUpdate c# interview examination questions how to use wpf control in a winform application prism框架里module太多启动速度过慢 Localizing of WPF application Unity 中的拦截功能 Interception and Interceptors in C# (Aspect oriented programming) 转载 WPF Snippet Tutorial - Aligning ListView Items WPF Tutorial - How To Use A DataTemplateSelector Dependency Properties Introduction To Dependency Properties of WPF 朋友的公司招.net程序员2名及项目经理1名 Simple Object Access Protocol (SOAP) 1.1 how to create pdf by itextsharp convert RGB colorspace to Homochromy(Black/whit) - umlchina 图片处理转换 : 使用SAAJ发送和接收SOAP消息 consume an asp.net webservice(upload a file to server) from java via soap 紧急求助:我们想做一个service程序,这个service负责统一管理这台机器上装的一些设备(包括签字板,扫描仪等等),
how to design a hardware service use .net remoting
umlchina · 2008-03-24 · via 博客园 - umlchina

This is a simple document about Hardware service and purposes of resources lock issue.

About the hardware resources lock issue:

1.         Add a member named IsLocked to the Remote Service Object, and this lock member indicates that the Hardware resource is available or already be used by other client application. I think it is better if we add a resource queue to manage several Hardware resources in the future.

2.         Add a property named Timeout that specifies the time-out period to the Remote Service Object. I think the default is 5 minutes and the minimum allowed value is 0 minute, if 0 minute it means that the session should never timeout. If the client does not to communicate with the service within the time-out period, then the session ends, and the service tear down the state of the Hardware resource to clean up and free the memory.

Hardware service API overview:

IDevice

The interface of the devices

Acquire ()

Request a device from Hardware service by .net Remoting. If the device hardware is available return true, then initialize device resource and lock this device. Otherwise if the device hardware is busy or unconnected, return false.

Release ()

Called once when the device stops, unlock the device and clean up the resources used by the device.

a)         User requests a Signature Pad resource to Hardware Service.

b)         If the Signature Pad resource is not available, then pop message “Signature Pad is busy. Please try later.

c)         If the Signature Pad resource is available, then get the resource and lock it.

d)         User sign on Signature pad.

e)         If user never does anything within the time-out period, then session ends, pop message “Session timeout” to user, and Hardware service auto unlock the resource.

f)           After finished sign, User will unlock the device resources