473,246 Members | 1,565 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

Windows service singleton interface to a public sealed class

Hi

I have a scheduler functionality that is implemented in public sealed
class with static methods, and now i'd like to utilize it in a window
service and have an exe file to access the singleton from outside as
well. Is this possible to achieve?
I've looked inot remoting but I haven't been able to send the object
ref to the client to access.... the different appdomain and all that.

/Erik

Jul 21 '05 #1
1 2156
I'm not quite sure what you mean by your last paragragh. With .Net remoting
objects can be passed by value (by adding the [Serializable] attribute to
your class), or by ref (inherit from MarshalByRefObject).

Your server side objects can be server (SingleCall or Singleton - which it
sounds like you want) or client activated.

There is a microsoft.public.dotnet.framework.remoting group, if you need any
advice specific to remoting.

HTH
Dan

"ogled" wrote:
Hi

I have a scheduler functionality that is implemented in public sealed
class with static methods, and now i'd like to utilize it in a window
service and have an exe file to access the singleton from outside as
well. Is this possible to achieve?
I've looked inot remoting but I haven't been able to send the object
ref to the client to access.... the different appdomain and all that.

/Erik

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dan | last post by:
All, I am developing an Object that wraps an old C library. Baeed upon how the object will be used I decided the best bet would be to make the object a singleton. Additionally, because the...
18
by: David | last post by:
Hello, I'm writing a C# class library that may be called by non-.Net applications. The main class of this class libray is a ServicedComponent so that non-.Net application can call this class as a...
8
by: Tony W | last post by:
Hi, I'm trying to write a small app where I need to keep referencing a stored file location that is stored in an xml file. My research suggests that I should use a Singleton to store the file...
13
by: Robert W. | last post by:
At the beginning of my C# days (about 6 months ago) I learned about the Singleton pattern and implemented for Reference data, such as the kind that appears in an Options dialog box. My Singleton...
4
by: SimpTheChimp | last post by:
I am going to write (my first) Windows Service. What I want is this service to run automatically when the computer/server is booted.... But also, to display an icon in the system tray whenever any...
1
by: ogled | last post by:
Hi I have a scheduler functionality that is implemented in public sealed class with static methods, and now i'd like to utilize it in a window service and have an exe file to access the...
2
by: baba | last post by:
Hi all, I'm quite new to C#. I am trying to implement some basics reusable classes using this language and the .NET Framework technology. What I'm trying to do now is to implement a singleton...
0
by: Jeff Louie | last post by:
Johns ? got me to thinking so here is some prototype code that attempts to subclass a singleton. namespace SubclassSingleton { class NoahsArkWithOneMale { private Animal afa = new Animal;...
9
by: Tony | last post by:
Hello! The keword abstract and sealed are not allowed in interfaces. I can understand that abstract is not allowed because an interface is completely abstract and contains no implementation. ...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.