Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
QuestionDownload mail Pin
hadad8-Jul-08 5:51
hadad8-Jul-08 5:51 
AnswerRe: Download mail Pin
User 66588-Jul-08 6:04
User 66588-Jul-08 6:04 
QuestionDTSx [modified] Pin
Paresh Gujarathi8-Jul-08 5:42
Paresh Gujarathi8-Jul-08 5:42 
QuestionWhen to test concrete classes in TDD? Pin
Pawel Krakowiak8-Jul-08 5:19
Pawel Krakowiak8-Jul-08 5:19 
AnswerRe: When to test concrete classes in TDD? Pin
N a v a n e e t h8-Jul-08 16:39
N a v a n e e t h8-Jul-08 16:39 
AnswerRe: When to test concrete classes in TDD? Pin
N a v a n e e t h8-Jul-08 16:51
N a v a n e e t h8-Jul-08 16:51 
GeneralRe: When to test concrete classes in TDD? Pin
Pawel Krakowiak8-Jul-08 22:47
Pawel Krakowiak8-Jul-08 22:47 
Questionwebpage calling windows service Pin
adam_smith_20038-Jul-08 5:08
adam_smith_20038-Jul-08 5:08 
Hello all,

I posted a question recently on using a SDK from an ASP.NET application and got some answers that made me rethink how i should approach an application i need to build.

Basically I have an ASP.NET application that needs to interact with a piece of hardware when either a user wants to interact (they tell the hardware to do something e.g. turn on turn off) or periodically (we poll for information from the hardware). Unfortunately the SDK only allows one call at a time so I need to provide my own locking around the SDK to ensure firstly that two asp clients attempt to interact with the hardware at the same time and secondly that a user doesn’t try to interact whilst a periodic action is taking place.



After some research and some questions on various forums I have decided to create a windows service which will create static instance of the SDK and the call these methods from the ASP.NET application through IPC remoting channels. From what I have read I will need to create two DLL’s one to interact with the SDK and contain the business logic and a DLL which will be used for the remoting objects.



Am just wondering if this seems the most logical way to tackle this problem or if anyone can think of a different/more efficient way or can see any holes in my solution. Am completely lost by this now as i can't find any examples of doing this it all seems to be about using web services but because i want to keep the state of the SDK object i didnt think i could use these??!!



Thanks,



Adam
AnswerRe: webpage calling windows service Pin
Christian Graus8-Jul-08 5:19
protectorChristian Graus8-Jul-08 5:19 
GeneralRe: webpage calling windows service Pin
adam_smith_20038-Jul-08 5:25
adam_smith_20038-Jul-08 5:25 
GeneralRe: webpage calling windows service Pin
Christian Graus8-Jul-08 5:37
protectorChristian Graus8-Jul-08 5:37 
AnswerRe: webpage calling windows service Pin
PIEBALDconsult8-Jul-08 7:29
mvePIEBALDconsult8-Jul-08 7:29 
QuestionIdentifying CD "format" Pin
arronhuk8-Jul-08 4:49
arronhuk8-Jul-08 4:49 
Questionvarchar(50) or nvarchar(50)? Pin
mrcooll8-Jul-08 4:40
mrcooll8-Jul-08 4:40 
AnswerRe: varchar(50) or nvarchar(50)? PinPopular
Guffa8-Jul-08 4:50
Guffa8-Jul-08 4:50 
GeneralRe: varchar(50) or nvarchar(50)? Pin
Christian Graus8-Jul-08 5:18
protectorChristian Graus8-Jul-08 5:18 
JokeRe: varchar(50) or nvarchar(50)? Pin
Luc Pattyn8-Jul-08 6:10
sitebuilderLuc Pattyn8-Jul-08 6:10 
QuestionCustomizing a .NET setup dynamically Pin
orangeflow8-Jul-08 3:50
orangeflow8-Jul-08 3:50 
AnswerRe: Customizing a .NET setup dynamically Pin
Rutvik Dave8-Jul-08 8:28
professionalRutvik Dave8-Jul-08 8:28 
QuestionProblem in FontStyle property Pin
Krishnraj8-Jul-08 3:38
Krishnraj8-Jul-08 3:38 
AnswerRe: Problem in FontStyle property Pin
Luc Pattyn8-Jul-08 3:46
sitebuilderLuc Pattyn8-Jul-08 3:46 
AnswerRe: Problem in FontStyle property Pin
half-life8-Jul-08 3:51
half-life8-Jul-08 3:51 
GeneralRe: Problem in FontStyle property Pin
Krishnraj8-Jul-08 4:07
Krishnraj8-Jul-08 4:07 
GeneralRe: Problem in FontStyle property Pin
leppie8-Jul-08 4:12
leppie8-Jul-08 4:12 
AnswerRe: Problem in FontStyle property Pin
User 66588-Jul-08 4:17
User 66588-Jul-08 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.