Friday, April 02, 2010

WCF + SL

Interesting.

I'm having issues doing some duplex WCF with Silverlight right now.

So what I wanted was to be able to call back the server to the client. Now there are obvious issues with this. You don't want to go ahead and use a configuration that is going to slow it down. The server may need to have memory of the clients that are connected to perform that callback. It could be a timeout before the server will reping to see if the client is still alive. Not to mention security and transport issues to support a duplex binding. The HTTP the protocol that it is is not the best binding to use in this situation. There are other types that many people would use in a situation like this. wsdualhttpbinding or something like that; for duplex it's best for one to use nettcpbinding. Silverlight 1-3 doesn't support it. So fuck it, I take a look at what's out there. There's pollingduplexhttpbinding. The name tells me that's it's not a true duplex. Since there's a timeout and some interval deal. I may as well write my JSON service and have my silverlight app pull on a regular basis. It's fucking easy enough and I could write that.

So I download Silverlight 4, I realize I now need to change all my assemblies to point to a new Framework. Then I realized my copy of the Visual Studio 2010 Beta can't work with SL4.

Everyone is pissing me off to use my company's copy of Visual Studio. Don't get me wrong. I can. My company will never know and that I am. I just hear a lot of bullshit about Microsoft and editors and shit like that. I want to be able to prove I can build a decent MS application using free tools. Not just a decent MS app. A state of the art one using the latest technologies.

So here I am. I guess using a beta copy was "cheating". For some reason after I installed the beat, it was difficult to find the Express copies. They're like, not in my start menus.

>>>

In the middle of an install ... my computer froze on the shitty mac. I hate the mac, keeps fucking freezing. I assume it's because of the NVidia drivers. I fucking don't know why people say it works. It fucking doesn't. Fucking monopolistic assholes. You know why it's so locked down? Here's the scoop, because they're not good enough to support anymore than their own shit. They're not smart enough.

No comments: