Re: app type

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Fri, 12 Oct 2007 11:01:00 -0700, GSS
<GSS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I am writing a custom logging component (which uses App Block; good stuff
there). The logger may be used in a winform, webform or in a webservice. I'd
like to determine what application type the component is being used in so I
can take different actions (e.g. terminate winapp, close session, or simply
log (or in some cases stop the service). How can I programmatically determine
this?

Personally I would not take this approach. The logging component
should do just that -- log. If you want additional logic based on the
application type do that separately in another component, or in the
application itself.

This way your logging component can
- Concentrate on its core function
- Be usable in scenarios that you might not think of now. If you bake
in dependencies on winforms and webservices then how easily can you
use it in a Smart Device application?

--
http://bytes.thinkersroom.com
.



Relevant Pages

  • Re: Server did not recognize the value of HTTP Header SOAPAction
    ... I have this winform 1.1 project where before I started changing the backend ... I understand you've developed an ASP.NET webservice ... which is consumed by a winform client application. ... application is sending an unexpected SoapAction header to the service. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Starting exe from WebService
    ... I need to execute the program through the webservice ... WebService because the program is complicated and I don't ... WinForm app is getting ... >Why do you want a WebMethod to launch a WinForm on the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Code Access Security Problems in IE-hosted Winform
    ... I have a winform that I host in IE, ... error when I try to access my webservice. ... I then made sure that MyServer is part of my Local Intranet Zone ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: call from a webservice to a windows Form
    ... > something more efficient like remoting or named pipes, ... Because the WinForm isn't the client of the webservice. ...
    (microsoft.public.dotnet.languages.csharp)