473,326 Members | 2,136 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,326 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 2164
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.