ServiceClass class?
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-remoting' list.


Vladimir Chernetsky
Hello,

I've just started to play with Remoting, so I'm wondering
about ServiceClass class. It is used in Remoting examples in MSDN,
but I failed to find any description of it, and, moreover, it does not exist
in the Remoting namespace...

Am I missing smth?

Configuration: VS.NET EA.

Best regards,
_______________________________

Vladimir Chernetsky
C|Net dFactory Research & Development
Click here to reveal e-mail address
Reply to this message...
 
    
Christian Weyer
Not sure about ServiceClass - but perhaps you mean ServiceBase.
The ServiceBase class is responsible for implementing a class that
represents a Windows Service. With this approach it is very easy to
develop Windows Services which could perfectly host your .NET Remoting
objects.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemServiceProcessServiceBaseClassTopic.asp

Cheers,
Christian
---------------------------------
.NET XML Web Services Repertory
http://www.xmlwebservices.cc/
---------------------------------

Vladimir Chernetsky wrote:
[Original message clipped]

Reply to this message...
 
    
Vladimir Chernetsky
No, I mean ServiceClass(), as written in MSDN example: (see code excerpt)

_________________
Public Shared Sub Main()

Dim channel As New HttpChannel(8080)
ChannelServices.RegisterChannel(channel)

Dim object1 As New ServiceClass()

' Create the single instance of ServiceClass. All clients
' will use this instance.
Dim ref1 As ObjRef = RemotingServices.Marshal(object1, "object1uri")
Console.WriteLine("ObjRef.URI: " & ref1.URI)

Console.WriteLine("Running. Press Enter to end publication.")
Console.ReadLine()
    ...
_________________

Best regards,
_______________________________

Vladimir Chernetsky
Web developer
C|Net dFactory Research & Development
Tel +7.095.967.12.02 (inner 225)
Click here to reveal e-mail address

[Original message clipped]

Reply to this message...
 
    
Christian Weyer
ServiceClass is the sample class that Microsoft uses in these samples
for a MBRO ...
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconremotingexampleasynchronousremoting.asp

Cheers,
Christian
---------------------------------
.NET XML Web Services Repertory
http://www.xmlwebservices.cc/
---------------------------------

Vladimir Chernetsky wrote:
> No, I mean ServiceClass(), as written in MSDN example: (see code excerpt)

Reply to this message...
 
    
Sripriya_Narasimhan
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--------------InterScan_NT_MIME_Boundary
Content-Type: multipart/alternative;
    boundary="----_=_NextPart_001_01C1E08A.5BF2EC00"

------_=_NextPart_001_01C1E08A.5BF2EC00
Content-Type: text/plain;
    charset="windows-1251"

Hi,
The following link has a very good example that demonstrates how to
build a Web Service and also Remoting the same method. This will be of help
to u.

http://www.dotnet247.com/247reference/a.aspx?u=http://msdn.microsoft.com/lib" target="_blank">http://www.dotnet247.com/247reference/a.aspx?u=http://msdn.microsoft.com/lib
rary/en-us/dnadvnet/html/Vbnet10232001.asp?frame=true
<http://www.dotnet247.com/247reference/a.aspx?u=http://msdn.microsoft.com/li
brary/en-us/dnadvnet/html/Vbnet10232001.asp?frame=true>

priya

-----Original Message-----
From: Vladimir Chernetsky [mailto:Click here to reveal e-mail address]
Sent: Wednesday, April 10, 2002 5:52 PM
To: ngfx-remoting
Subject: [ngfx-remoting] Re: ServiceClass class??

No, I mean ServiceClass(), as written in MSDN example: (see code excerpt)

_________________
Public Shared Sub Main()

Dim channel As New HttpChannel(8080)
ChannelServices.RegisterChannel(channel)

Dim object1 As New ServiceClass()

' Create the single instance of ServiceClass. All clients
' will use this instance.
Dim ref1 As ObjRef = RemotingServices.Marshal(object1, "object1uri")
Console.WriteLine("ObjRef.URI: " & ref1.URI)

Console.WriteLine("Running. Press Enter to end publication.")
Console.ReadLine()
...
_________________

Best regards,
_______________________________

Vladimir Chernetsky
Web developer
C|Net dFactory Research & Development
Tel +7.095.967.12.02 (inner 225)
Click here to reveal e-mail address

[Original message clipped]

| [ngfx-remoting] member Click here to reveal e-mail address = YOUR ID |
http://www.aspfriends.com/aspfriends/ngfx-remoting.asp = JOIN/QUIT

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

------_=_NextPart_001_01C1E08A.5BF2EC00
Content-Type: text/html;
    charset="windows-1251"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1251">
<TITLE>RE: [ngfx-remoting] Re: ServiceClass class??</TITLE>

<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D460022112-10042002><FONT face=3DGeorgia=20
color=3D#0000ff>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D460022112-10042002><FONT face=3DGeorgia=20
color=3D#0000ff>    The following link has a very good =
example that=20
demonstrates how to build a Web Service and also Remoting the same =
method. This=20
will be of help to u.</FONT></SPAN></DIV>
<DIV><SPAN class=3D460022112-10042002><FONT face=3DGeorgia=20
color=3D#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=3D460022112-10042002><FONT face=3DGeorgia =
color=3D#0000ff><A=20
href=3D"http://www.dotnet247.com/247reference/a.aspx?u=3Dhttp://msdn.mic=
rosoft.com/library/en-us/dnadvnet/html/Vbnet10232001.asp?frame=3Dtrue">h=
ttp://www.dotnet247.com/247reference/a.aspx?u=3Dhttp://msdn.microsoft.co=
m/library/en-us/dnadvnet/html/Vbnet10232001.asp?frame=3Dtrue</A></FONT><=
/SPAN></DIV>
<DIV><SPAN class=3D460022112-10042002><FONT face=3DGeorgia=20
color=3D#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=3D460022112-10042002><FONT face=3DGeorgia=20
color=3D#0000ff>priya</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2><FONT face=3DGeorgia color=3D#0000ff =
size=3D3>-----</FONT>Original=20
Message-----<BR><B>From:</B> Vladimir Chernetsky=20
[mailto:Click here to reveal e-mail address]<BR><B>Sent:</B> =
Wednesday, April=20
10, 2002 5:52 PM<BR><B>To:</B> ngfx-remoting<BR><B>Subject:</B>=20
[ngfx-remoting] Re: ServiceClass class??<BR><BR></FONT></DIV>
<P><FONT size=3D2>No, I mean ServiceClass(), as written in MSDN =
example: (see=20
code excerpt)</FONT> </P>
<P><FONT size=3D2>_________________</FONT> <BR><FONT size=3D2>Public =
Shared Sub=20
Main()</FONT> </P>
<P><FONT size=3D2>      Dim channel As New=20
HttpChannel(8080)</FONT> <BR><FONT =
size=3D2>     =20
ChannelServices.RegisterChannel(channel)</FONT> </P>
<P><FONT size=3D2>      Dim object1 As New=20
ServiceClass()</FONT> </P>
<P><FONT size=3D2>      ' Create the single =
instance of=20
ServiceClass. All clients</FONT> <BR><FONT=20
size=3D2>      ' will use this =
instance.</FONT>=20
<BR><FONT size=3D2>      Dim ref1 As ObjRef =
=3D=20
RemotingServices.Marshal(object1, "object1uri")</FONT> <BR><FONT=20
size=3D2>      =
Console.WriteLine("ObjRef.URI: " &=20
ref1.URI)</FONT> </P>
<P><FONT size=3D2>      =
Console.WriteLine("Running.=20
Press Enter to end publication.")</FONT> <BR><FONT=20
size=3D2>      Console.ReadLine()</FONT>=20
<BR>        <FONT =
size=3D2>...</FONT>=20
<BR><FONT size=3D2>_________________</FONT> </P>
<P><FONT size=3D2>Best regards,</FONT> <BR><FONT=20
size=3D2>_______________________________</FONT> </P>
<P><FONT size=3D2>Vladimir Chernetsky</FONT> <BR><FONT size=3D2>Web=20
developer</FONT> <BR><FONT size=3D2>C|Net dFactory Research &=20
Development</FONT> <BR><FONT size=3D2>Tel +7.095.967.12.02 (inner =
225)=20
</FONT><BR><FONT size=3D2>Click here to reveal e-mail address</FONT> =
</P><BR>
<P><FONT size=3D2>>>-----Original Message-----</FONT> <BR><FONT =

size=3D2>>>From: Christian Weyer [<A=20
href=3D"mailto:Click here to reveal e-mail address">mailto:Click here to reveal e-mail address</A>]</FONT> =
<BR><FONT=20
size=3D2>>>Sent: Wednesday, April 10, 2002 3:37 PM</FONT> =
<BR><FONT=20
size=3D2>>>To: ngfx-remoting</FONT> <BR><FONT =
size=3D2>>>Subject:=20
[ngfx-remoting] Re: ServiceClass class??</FONT> <BR><FONT=20
size=3D2>>></FONT> <BR><FONT size=3D2>>></FONT> <BR><FONT =

size=3D2>>>Not sure about ServiceClass - but perhaps you mean=20
ServiceBase.</FONT> <BR><FONT size=3D2>>>The ServiceBase class =
is=20
responsible for implementing a class that </FONT><BR><FONT=20
size=3D2>>>represents a Windows Service. With this approach it =
is very=20
easy to </FONT><BR><FONT size=3D2>>>develop Windows Services =
which could=20
perfectly host your .NET </FONT><BR><FONT size=3D2>>>Remoting=20
</FONT><BR><FONT size=3D2>>>objects.</FONT> <BR><FONT =
size=3D2>>><A=20
=
href=3D"http://msdn.microsoft.com/library/default.asp?url=3D/library/en-=
"=20
=
target=3D_blank>http://msdn.microsoft.com/library/default.asp?url=3D/lib=
rary/en-</A></FONT>=20
<BR><FONT=20
=
size=3D2>>>us/cpref/html/frlrfSystemServiceProcessServiceBaseClass=
Topic.asp</FONT>=20
<BR><FONT size=3D2>>></FONT> <BR><FONT =
size=3D2>>>Cheers,</FONT>=20
<BR><FONT size=3D2>>>Christian</FONT> <BR><FONT=20
size=3D2>>>---------------------------------</FONT> <BR><FONT=20
size=3D2>>>  .NET XML Web Services Repertory</FONT> =
<BR><FONT=20
size=3D2>>>   <A =
href=3D"http://www.xmlwebservices.cc/"=20
target=3D_blank>http://www.xmlwebservices.cc/</A></FONT> <BR><FONT=20
size=3D2>>>---------------------------------</FONT> <BR><FONT=20
size=3D2>>></FONT> <BR><FONT size=3D2>>>Vladimir =
Chernetsky=20
wrote:</FONT> <BR><FONT size=3D2>>>> </FONT><BR><FONT=20
size=3D2>>>> Hello,</FONT> <BR><FONT size=3D2>>>>=20
</FONT><BR><FONT size=3D2>>>> I've just started to play with =
Remoting,=20
so I'm wondering</FONT> <BR><FONT size=3D2>>>> about =
ServiceClass=20
class. It is used in Remoting examples in MSDN,</FONT> <BR><FONT=20
size=3D2>>>> but I failed to find any description of it, =
and, moreover,=20
</FONT><BR><FONT size=3D2>>>it does not </FONT><BR><FONT=20
size=3D2>>>> exist</FONT> <BR><FONT size=3D2>>>> in =
the Remoting=20
namespace...</FONT> <BR><FONT size=3D2>>>> </FONT><BR><FONT=20
size=3D2>>>> Am I missing smth?</FONT> <BR><FONT =
size=3D2>>></FONT>=20
<BR><FONT size=3D2>>></FONT> <BR><FONT size=3D2>>></FONT> =
<BR><FONT=20
size=3D2>>></FONT> <BR><FONT size=3D2>>></FONT> <BR><FONT =

size=3D2>>>| [ngfx-remoting] member =
Click here to reveal e-mail address =3D=20
YOUR ID</FONT> <BR><FONT size=3D2>>>| <A=20
href=3D"http://www.aspfriends.com/aspfriends/ngfx-remoting.asp"=20
=
target=3D_blank>http://www.aspfriends.com/aspfriends/ngfx-remoting.asp</=
A> =3D=20
JOIN/QUIT</FONT> <BR><FONT size=3D2>>></FONT> </P>| =
[ngfx-remoting] member=20
Click here to reveal e-mail address =3D YOUR ID |=20
http://www.aspfriends.com/aspfriends/ngfx-remoting.asp =3D JOIN/QUIT=20
</BLOCKQUOTE></BODY></HTML>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">*********************************************************=
***************** </FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">This email (including any attachments) =
is intended for the sole use of the intended recipient/s and may =
contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. =
Any review or reliance by others or copying or distribution or =
forwarding of any or all of the contents in this message is STRICTLY =
PROHIBITED. If you are not the intended recipient, please contact the =
sender by email and delete all copies; your cooperation in this regard =
is appreciated.</FONT></P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">*********************************************************=
*****************</FONT></P>

------_=_NextPart_001_01C1E08A.5BF2EC00--

--------------InterScan_NT_MIME_Boundary--

Reply to this message...
 
    
Vladimir Chernetsky
Oh, that really slipped my mind, thanx Christian.
Stupid mistake:)

Best regards,
_______________________________

Vladimir Chernetsky
C|Net dFactory Research & Development
Click here to reveal e-mail address

[Original message clipped]

Reply to this message...
 
 
System.Console
System.Runtime.Remoting.Channels.ChannelServices
System.Runtime.Remoting.Channels.Http.HttpChannel
System.Runtime.Remoting.ObjRef
System.Runtime.Remoting.RemotingServices
System.ServiceProcess.ServiceBase




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com