Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Persistent collection in service?

 
 
Thread Tools Display Modes
Old 10-11-2007   #1 (permalink)
Mike
Guest


 

Persistent collection in service?

Hi,



I have the following scenario and problem.



What I have I s WCF service hosted inside a Windows Application, which
is the server components.

I also have a client application, another windows app.

The client application calls a service method called AuthenticateUser(),
if it succeeds return true, else return false.

What I want is the server windows app (the one that host the service on
the server side) to some of the action taken by the client apps.

For example, every time that a client authenticates, I want the server
application to maintain in its main windows a list of all the people
Authenticated.



How can I achieve this?

Should all the functionality be in the service, like a collection with
the client IDS of the authenticated people?

Or it should be on the server app?



I'm a bit confused on how to achieve this.





Please help.



Thanks,

Mike






Old 10-11-2007   #2 (permalink)
Vadym Stetsiak
Guest


 

Re: Persistent collection in service?

Hello, Mike!

WCF Service is only used for communication, it provides data. Application
logic that handles these data has to be separate from the service code

One of the reasons why data handling layer (in your case its persistent
collection) must be separated from service is that
communication layer can change. While logic that handles data usually
remains the same.
--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Thu, 11 Oct 2007 02:57:14 -0400:

M> Hi,



M> I have the following scenario and problem.



M> What I have I s WCF service hosted inside a Windows Application,
M> which is the server components.

M> I also have a client application, another windows app.

M> The client application calls a service method called
M> AuthenticateUser(), if it succeeds return true, else return false.

M> What I want is the server windows app (the one that host the service
M> on the server side) to some of the action taken by the client apps.

M> For example, every time that a client authenticates, I want the
M> server application to maintain in its main windows a list of all the
M> people
M> Authenticated.



M> How can I achieve this?

M> Should all the functionality be in the service, like a collection
M> with the client IDS of the authenticated people?

M> Or it should be on the server app?



M> I'm a bit confused on how to achieve this.





M> Please help.



M> Thanks,

M> Mike








Old 10-16-2007   #3 (permalink)
Joe-P
Guest


 

RE: Persistent collection in service?

If I understand correctly you want to persist authenticated users so that
every call that is done after the first authentication should pass without
doing the same action again.
First its not good practise for the hosting server to have any other
logic. It should all be handled by the service. But the security in WCF is
handled by the host. There are Message level and Network level
authentication. You may want use the Network level authentication available
in it. You can also extend this feature by extending the security channel and
have your own custom binding which is easy. If you extend it then you can
store in more persistent medium. But you may need to look at scalability.

Hope this is helpfull !

Thanks,
Joe

"Mike" wrote:
Quote:

> Hi,
>
>
>
> I have the following scenario and problem.
>
>
>
> What I have I s WCF service hosted inside a Windows Application, which
> is the server components.
>
> I also have a client application, another windows app.
>
> The client application calls a service method called AuthenticateUser(),
> if it succeeds return true, else return false.
>
> What I want is the server windows app (the one that host the service on
> the server side) to some of the action taken by the client apps.
>
> For example, every time that a client authenticates, I want the server
> application to maintain in its main windows a list of all the people
> Authenticated.
>
>
>
> How can I achieve this?
>
> Should all the functionality be in the service, like a collection with
> the client IDS of the authenticated people?
>
> Or it should be on the server app?
>
>
>
> I'm a bit confused on how to achieve this.
>
>
>
>
>
> Please help.
>
>
>
> Thanks,
>
> Mike
>
>
>
>
>
>
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistent spooler connection Max Vista print fax & scan 2 07-28-2008 12:58 PM
persistent cookies stephen buck Vista General 1 05-29-2008 07:43 AM
3rd time asking ( I'm a persistent sob ) t-4-2 Vista performance & maintenance 13 05-05-2008 01:09 AM
persistent state KRK Vista General 1 03-02-2008 07:58 AM
Persistent routes balsup Vista networking & sharing 1 06-13-2007 03:40 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50