N
Nick
Hi there,
I'm trying to think of a possible waht that I can achieve notifying the
current user of events via a webservice, in realtime. For example, I might
want to pop a message up on the logged on users screen, but not via the page
Load event.
I thought of making a static class with an event delegate, this works in an
isolated project of course, but not from Web Service -> Website, even though
they are in the same application domain.
----
namespace WindowsFormsApplication1
{
class UserNotification
{
public delegate void recievedNotificationHandler(String iUserID);
public static event recievedNotificationHandler
recievedNotification;
public static void notifyUser(String iUserID, Object[]
iNotifyParams)
{
recievedNotification(iUserID);
}
}
}
----
The only other way I can think of is via an Ajax update panel updating on a
regular basis in order to check for notifications, but this wouldn't be
realtime and could cause allot more stress on the server. Any ideas on if
this can be done or not?
Another example of what I want to use this for is to log-off the user
on-demand.
Many thanks for your time.
Nick.
I'm trying to think of a possible waht that I can achieve notifying the
current user of events via a webservice, in realtime. For example, I might
want to pop a message up on the logged on users screen, but not via the page
Load event.
I thought of making a static class with an event delegate, this works in an
isolated project of course, but not from Web Service -> Website, even though
they are in the same application domain.
----
namespace WindowsFormsApplication1
{
class UserNotification
{
public delegate void recievedNotificationHandler(String iUserID);
public static event recievedNotificationHandler
recievedNotification;
public static void notifyUser(String iUserID, Object[]
iNotifyParams)
{
recievedNotification(iUserID);
}
}
}
----
The only other way I can think of is via an Ajax update panel updating on a
regular basis in order to check for notifications, but this wouldn't be
realtime and could cause allot more stress on the server. Any ideas on if
this can be done or not?
Another example of what I want to use this for is to log-off the user
on-demand.
Many thanks for your time.
Nick.