Coding.Net people

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Mikee  
 To:  ALL
37334.1 
I've been thinking about Spoffice and how it currently works, and I realise that I'm not using best practices - I'm doing it as I'd do it in a language like PHP or something.

I'd like to change it so that it's the Correct way of doing things, so some advice would be lovely.

Currently it's basically just an MVC website which has a static property (music service) which runs different objects (music downloaders, music players, whatever) in threads, with events/callbacks to say when things are finished.

My brain says that ideally, the whole music service should be an entirely different thing and not connected to the website. The website should just be a front-end which can talk to it. This is because the music service is running constantly.

So is that probably the best way of doing it? and if so, what'd be the nicest way of doing it? I feel like I should be running the "MusicService" as an actual windows service. How easy is it for my website to talk to this service? Can I pass objects between the two? Can my website detect if it's running and start/stop it? What would it use to communicate? What is the meaning of life?

This'd be soooo simple in PHP (if it was possible in PHP......)
0/0
 Reply   Quote More 

 From:  THERE IS NO GOD BUT (RENDLE)  
 To:  Mikee     
37334.2 In reply to 37334.1 

I wouldn't run it as a Windows service, it doesn't really achieve anything and over-complicates deployment. And giving the ASP.NET identity permission to start and stop services is fraught with badness. And I'm not entirely sure a service can access the audio stack anyway.

 

If I understand correctly, this is running on your server, so you can install .NET 4? If so, take a look at the Managed Extensibility Framework, which will let you drop different assemblies into a folder and automagically load types from it to implement interfaces.

 

I'd write some more, but I've had two project kick-off meetings this week and just finished a two-day envisioning session at Microsoft, so I'm a bit tired.

Happy now?

0/0
 Reply   Quote More 

 From:  99% of gargoyles look like (MR_BASTARD)  
 To:  THERE IS NO GOD BUT (RENDLE)     
37334.3 In reply to 37334.2 
I know what you mean. Envisioning is a real mind-fuck.

bastard by name, bastard by nature

0/0
 Reply   Quote More 

Reply to All    
 

1–3

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats