[Backalaika-developers] Important question to Fabio at the end
Status: Beta
Brought to you by:
nandof
From: Nando F. <nan...@ma...> - 2004-09-28 02:52:29
|
New idea for a task that can be done right now: - Minimize BackupServer and FileServer to the system tray. Anyone? Fabio, I am very happy to see your updates in CVS! Good updates too! I noticed sometimes you use the <description> tag in XML documentation, but the text within doesn't appear, because that tag is meant to be a description *to a term in a list*. So I took the liberty of changing a few to the <remarks> tag. In #D you can test XML documentation by pressing CTRL-Q, but remember to save first -- sometimes #D hangs when I close the documentation window. Also, great idea to have a change history in each file. Should newest changes be on top? I am putting them on top but I don't care, so if you have a preference just state it. Speaking of cosmetic changes, Fabio and Ian win: I admit that tab indentation is superior to space indentation for our purposes, and that opening braces {} in a new line may often make code more readable. In time, my humble classes will comply. On the other hand, please go to Options - Text Editor - Markers and Rulers - enable show column ruler at column 80... When we talk about remoting, server-activated objects have two possible activation modes (or WellKnownObjectMode values): Singleton and SingleCall. These are at opposite ends of a spectrum. SingleCall is stateful: the remote object is only accessed once, the next time it will be a different object. Singleton means only one object is created and accessed by all clients. I think singleton remoting would be appropriate for us. But there's a difference between *singleton remoting* and *a class written in the singleton pattern*. I read the excellent article on the singleton pattern you linked http://www.skeet.org.uk/csharp/singleton.html This author is golden. Here is more by him http://www.yoda.arachsys.com/csharp/index.html Fabio, FileServerBackup inherits from MarshalByRefObject, this means you also intend it to be server-activated. Can you explain why the singleton class pattern is needed for FileServerBackup then? I ask because I have never seen anyone say that *singleton remoting* requires a *singleton type*, nor any examples suggesting it. Nando |