Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: Complicated question Pin
Kuira9-Apr-06 13:43
Kuira9-Apr-06 13:43 
QuestionNotifyIcon Program ? Pin
Skoder7-Apr-06 18:05
Skoder7-Apr-06 18:05 
AnswerRe: NotifyIcon Program ? Pin
S. Senthil Kumar7-Apr-06 18:22
S. Senthil Kumar7-Apr-06 18:22 
AnswerRe: NotifyIcon Program ? Pin
kasik8-Apr-06 4:22
kasik8-Apr-06 4:22 
GeneralRe: NotifyIcon Program ? Pin
Skoder8-Apr-06 11:41
Skoder8-Apr-06 11:41 
Questionsaving remoting state to file Pin
blucas20057-Apr-06 17:46
blucas20057-Apr-06 17:46 
AnswerRe: saving remoting state to file Pin
S. Senthil Kumar7-Apr-06 18:27
S. Senthil Kumar7-Apr-06 18:27 
GeneralRe: saving remoting state to file Pin
blucas20057-Apr-06 21:24
blucas20057-Apr-06 21:24 
thanks for the posting
well, this whole app is weird
the object resides in another machine, but it returns this machine's infor to my server, how can i extract only that?
iddeally i would like to save the hash to a file and pick it from this file and reasign to the hash in a server reboot situation

here is a piece of my code

Public Class ServerProcess
Inherits MarshalByRefObject
Implements IAlertServer

''USES A HASH FOR NOW - DATABASE IN THE FUTURE
Private ActiveUsers As New Hashtable

'''CLASS DEFINED ON THE BOTTOM OF THIS FILE
Private MessageDelivery As New MessageDelivery

Private DeliveryThread As New Thread(AddressOf MessageDelivery.Deliver)

Private utils As New AlertUtils.AlertUtils

Public Property _ActiveUsers() As Hashtable
Get
Return ActiveUsers
End Get
Set(ByVal Value As Hashtable)
ActiveUsers = Value
End Set
End Property

Public Sub New()
MyBase.New()
DeliveryThread.IsBackground = True
End Sub

'''RETURNS HASHTABLE
Public Function GetUsers() As System.Collections.ICollection Implements AlertInterface.IAlertServer.GetUsers
Return ActiveUsers.Keys
End Function

''''USER LOGS IN, RUNS ALERTSEND, ALERTSEND CAPTURE LOGIN NAME AND SEND THROUGH
Public Sub AddUser(ByVal [alias] As String, ByVal client As IAlertClient) Implements AlertInterface.IAlertServer.AddUser

'''RegisteredUsers.ContainsKey

Dim SynchronizedCollection As Hashtable = Hashtable.Synchronized(ActiveUsers)
SynchronizedCollection([alias]) = client

'logwholehash(client)

Try
Dim fs As New FileStream("C:\temp\userss.bin", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite)
Dim myformater As New BinaryFormatter
myformater.Serialize(fs, client)
fs.Close()
Catch ex As Exception
utils.LogException(ex)
End Try

MessageDelivery.UpdateUsers(ActiveUsers.Clone())

End Sub

GeneralRe: saving remoting state to file Pin
S. Senthil Kumar8-Apr-06 18:55
S. Senthil Kumar8-Apr-06 18:55 
AnswerRe: Windows service memory utilization Pin
S. Senthil Kumar7-Apr-06 18:31
S. Senthil Kumar7-Apr-06 18:31 
QuestionExcel Spreadsheet Pin
Monin D.7-Apr-06 9:48
Monin D.7-Apr-06 9:48 
AnswerRe: Excel Spreadsheet Pin
Braulio Dez7-Apr-06 10:03
Braulio Dez7-Apr-06 10:03 
GeneralRe: Excel Spreadsheet Pin
Monin D.7-Apr-06 23:23
Monin D.7-Apr-06 23:23 
AnswerRe: Excel Spreadsheet Pin
Graham Nimbley9-Apr-06 15:02
Graham Nimbley9-Apr-06 15:02 
QuestionTreeListView Pin
Robert M Greene7-Apr-06 9:39
Robert M Greene7-Apr-06 9:39 
AnswerRe: TreeListView Pin
Josh Smith10-Apr-06 3:41
Josh Smith10-Apr-06 3:41 
QuestionProblem with p/invoke in c# Pin
t4ure4n7-Apr-06 8:11
t4ure4n7-Apr-06 8:11 
AnswerRe: Problem with p/invoke in c# Pin
Steve Maier7-Apr-06 8:31
professionalSteve Maier7-Apr-06 8:31 
AnswerRe: Problem with p/invoke in c# Pin
Dan Neely7-Apr-06 8:35
Dan Neely7-Apr-06 8:35 
AnswerRe: Problem with p/invoke in c# Pin
Graham Nimbley9-Apr-06 15:10
Graham Nimbley9-Apr-06 15:10 
GeneralRe: Problem with p/invoke in c# Pin
t4ure4n10-Apr-06 8:30
t4ure4n10-Apr-06 8:30 
QuestionThe P/Invoke Wizard Pin
t4ure4n7-Apr-06 7:50
t4ure4n7-Apr-06 7:50 
AnswerRe: The P/Invoke Wizard Pin
Steve Maier7-Apr-06 8:28
professionalSteve Maier7-Apr-06 8:28 
AnswerRe: The P/Invoke Wizard Pin
Office Lineman7-Apr-06 8:29
Office Lineman7-Apr-06 8:29 
QuestionHow to find trusted sites? Pin
T John7-Apr-06 7:33
T John7-Apr-06 7:33 

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.