Dependency injection

2010-07-28 Thread Jeff Sinclair
Hi, I am using Microsoft unity to do dependency inject but I have a small problem. Let's say I have a business layer assembly and a data layer assembly. The data layer exposes 2 interfaces, IDataRepositortyA and IDataRepositoryB. These are both constructed by unity. Now let's say

RE: Dependency injection

2010-07-28 Thread James Chapman-Smith
Hi Jeff, You need to think twice about exposing low-level functionality through a high-level interface. The purpose of repositories is, in one respect, to hide low level functionality. If you feel that you need to do so then maybe you have problems with one or both of your interfaces. Some

RE: Dependency injection

2010-07-28 Thread Jeff Sinclair
Thanks Michael, That makes sense. I was thinking I would need to do some sort of cast Eg If (repositoryB is ILowLevelDataRepositoryB) { ILowLevelDataRepositoryB lowLevelRepositryB = (ILowLevelDataRepositoryB) repositryB . } But I really

So it's friday eve time for a random discussion!

2010-07-28 Thread Winston Pang
Alright, so it's almost friday, and I figure I'll spark a discussion. Since I'm always eavesdropping into conversations going in at work, I find a lot of dodgy things happen, very unethical ways of making money and getting business, I'm guessing it really is the norm in all business's. So how

Re: So it's friday eve time for a random discussion!

2010-07-28 Thread David Connors
On 29 July 2010 10:19, Winston Pang winstonp...@gmail.com wrote: Alright, so it's almost friday, and I figure I'll spark a discussion. Since I'm always eavesdropping into conversations going in at work, I find a lot of dodgy things happen, very unethical ways of making money and getting

Re: So it's friday eve time for a random discussion!

2010-07-28 Thread Heinrich Breedt
ill tell you when i leave ;) On Thu, Jul 29, 2010 at 10:21 AM, David Connors da...@codify.com wrote: On 29 July 2010 10:19, Winston Pang winstonp...@gmail.com wrote: Alright, so it's almost friday, and I figure I'll spark a discussion. Since I'm always eavesdropping into conversations going

Re: So it's friday eve time for a random discussion!

2010-07-28 Thread Paul Gaske
On Thu, Jul 29, 2010 at 10:19 AM, Winston Pang winstonp...@gmail.comwrote: Alright, so it's almost friday, and I figure I'll spark a discussion. Since I'm always eavesdropping into conversations going in at work, I find a lot of dodgy things happen, very unethical ways of making money and

OT: Re: So it's friday eve time for a random discussion!

2010-07-28 Thread Jason Finch
Just as a courtesy could you please OT the subject of content of this type of stuff so my filter works. ozDotNet becomes sans DotNet sometimes. The OT just helps for us whom are after the meat without the potatoes. TIA. On Thu, Jul 29, 2010 at 10:19 AM, Winston Pang

RE: So it's friday eve time for a random discussion!

2010-07-28 Thread silky
Alright, so it's almost friday, and I figure I'll spark a discussion. Since I'm always eavesdropping into conversations going in at work, I find a lot of dodgy things happen, very unethical ways of making money and getting business, I'm guessing it really is the norm in all business's. So

Visual 2010 XAML Design View delays

2010-07-28 Thread tonywr
Hi all, One of my gripes regarding Visual Studio 2010 is just how long it takes for that XAML Design view to load. It takes ages. On my machine it can take 20 seconds to load. On one of my colleagues I've seen it take between 40 seconds and a minute to load. It's an absolute pain. So when

RE: Visual 2010 XAML Design View delays

2010-07-28 Thread David Burela
If I recall, Paul Stovell showed how to do this at Code Camp. I think he said that you right click the xaml file (in solution explorer), click 'open with'. Then set the default to open in just the code editor. -David Burela -Original Message- From: ozdotnet-boun...@ozdotnet.com