| || |
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
29 Articles match "Windows"
See all articles with
| The Latest from Tony and Zuzana's World || MORE |
| | WCF SOAP and REST Multi-Project Visual Studio Templates
Similarly, the service resides in a separate project than the web host, which makes it easier to re-deploy it in a self-hosting scenario (such as a Windows Service). Last year I published a REST Multi-Project Visual Studio Template on the Visual Studio Extensions Gallery, available for download from the Tools-Manage Extensions menu from within Visual Studio 2010. What I like about this sort of project template is that it produces a much more realistic WCF solution with entities spit off into a separate project that is referenced from both the service and client projects. Enjoy. DevelopMentor Courses - Sunday, June 10, 2012
Secure WCF REST Services with a Custom UserNamePasswordValidator
This assumes you’re running Windows Vista or later. For earlier versions of Windows you will need to use httpcfg – see here for more info. Download the code for this blog post here. When securing WCF services you’re faced with a choice: Message versus Transport security. Unless you need to conceal messages from an intermediary, your best bet is to stick with transport security and use SSL to secure messages traveling over HTTP. This means you can eschew the complexity and overhead of message-based security in favor of the simpler and leaner model of transport-based security. DevelopMentor Courses - Monday, May 28, 2012
Decouple WCF Services from their DI Container with Common Instance Factory
Service ="CommonInstanceFactory.Sample.Services.GreetingService" %> If you have a non-web host, such as a Windows Service, you won’t need to worry about wiring up a container-specific ServiceHostFactory at all. In my last blog post I introduced the Common Instance Factory , which I built as an alternative to Common Service Locator to reduce coupling between an application and a Dependency Injection (DI) container. Unlike the Common Service Locator (CSL), the Common Instance Factory (CIF) discourages the service location anti-pattern by using the abstract factory design pattern. DevelopMentor Courses - Saturday, May 26, 2012
| The Best from Tony and Zuzana's World || MORE |
| | Easier Async for Silverlight Apps using MVVM
However, as is the case with other UI frameworks such as Windows Forms or WPF, you should not touch UI elements from worker threads. This has to do with how Windows apps process messages, which are always handled on the thread that created the visual element. Windows Forms has the Control.InvokeRequired / Control.BeginInvoke API. It makes sense to execute long-running tasks on a background thread, in order to keep the UI responsive by not tying up the main thread. There are various mechanisms available for you to marshal a call from a worker thread back to the main thread. Tony and Zuzana's World - Saturday, January 29, 2011
Building a Leak-Proof Eventing Model
However, if you were to try it on Silverlight or Windows Phone, you’ll soon be banging your head against a wall (at least figuratively). Best of all, this approach works across the board with full.NET / WPF, Silverlight and Windows Phone. One of the main features of the.NET Framework is to provide automatic memory management via garbage collection. You might think this would solve the problem of memory leaks in managed applications, but the effectiveness of the garbage collector can be hampered by your code. If you do not set these references to null, the GC will not collect them. Tony and Zuzana's World - Tuesday, March 22, 2011
Tackling the Problem of Modal Dialogs in MVVM
The way to accomplish this is with a callback parameter in NotificationEventArgs where you can process the user response, which could be anything from a boolean (for example in the case of a delete confirmation) to the result of a child window. This plays nice with the asynchronous nature of dialogs in Silverlight, which are not truly model as they are in WPF or Windows Forms (this is because you can’t rely on the Windows message pump in a cross-platform framework such as Silverlight). One of the main benefits of MVVM is better application maintainability. null). Tony and Zuzana's World - Friday, January 28, 2011
- WCF Data Services versus WCF Soap Services
This is a great question because it relates to a recent re-alignment of what used to be called “ADO.NET Data Services” (code-named Astoria) under the umbrella of Windows Communication Foundation (WCF), as well as the renaming of.NET RIA Services to WCF RIA Services. Someone recently asked me this question: When a company that has been using 2 tiers wants to move to n-tier, what are the considerations for choosing WCF and STEs [or Trackable DTOs] vs. WCF Data Services? Only SOAP Services (leaving Workflow Services aside for the moment) can be used with any format and transport protocol.
Tony and Zuzana's World - Tuesday, April 13, 2010
- Simple MVVM Toolkit versus MVVM Light Toolkit
Both Simple MVVM and MVVM Light toolkits support WPF, Silverlight and Windows Phone clients. One is an assortment of small samples, each illustrating a particular feature or aspect of the toolkit: Property Association, Enums, Async, Dependency Injection, Messaging, Navigation, and RIA Services, as well as Getting Started samples for Silverlight, WPF and Windows Phone. Now that I’ve released Simple MVVM Toolkit version 2 , people are starting to ask how it stacks up against some of the other MVVM Toolkits out there. Simple MVVM Toolkit would fall into the latter category. Support.
Tony and Zuzana's World - Saturday, April 23, 2011
- Secure WCF REST Services with a Custom UserNamePasswordValidator
This assumes you’re running Windows Vista or later. For earlier versions of Windows you will need to use httpcfg – see here for more info. Download the code for this blog post here. When securing WCF services you’re faced with a choice: Message versus Transport security. Unless you need to conceal messages from an intermediary, your best bet is to stick with transport security and use SSL to secure messages traveling over HTTP. This means you can eschew the complexity and overhead of message-based security in favor of the simpler and leaner model of transport-based security.
DevelopMentor Courses - Monday, May 28, 2012
- Build a Multi-Project Visual Studio Template
Earlier this year I authored an open-source toolkit, called Simple MVVM Toolkit , to help developers build Silverlight, WFP and Windows Phone applications based on the Model-View-ViewModel design pattern. Download the code for this article here. To enhance developer productivity, the toolkit combines a set of helper classes with code and xml snippets, as well as Visual Studio item and project templates. Visual Studio makes it extremely easy to create a single-project template. Simply select Export Template from the File menu and follow the prompts. saferootprojectname$.Entities Enjoy.
Tony and Zuzana's World - Wednesday, September 14, 2011
- Automatically Upgrading to Visual Studio 2010
And here is a Windows Forms app I wrote that searches for all Visual Studio solutions under a root directory and shells out to a command prompt to do the upgrade. I’ve had the need recently to convert a large number of projects from Visual Studio 2008 to Visual Studio 2010. was not able to find a tool out there that does this automatically, so I wrote one. The key is to invoke devenv.exe from the command line and use the /upgrade switch. Here is a link to the docs on that option. Of course, upgrading to VS 2010 is only half the process. Cheers.
Tony and Zuzana's World - Sunday, November 28, 2010
- More NLog Goodness
NLog has an interesting feature that allows you to include the table definition in your NLog.config file and run a command-line utility to create the database and logging table, as well as set up other targets, such as a Windows Event Log or performance counters. The tool will also create the windows event log or performance counters if those targets are specified. This is a follow-up to my post on Using NLog with Dependency Injection. This time around, I thought I would call out a few more features of NLog which I found useful. Download the code for this blog post. <!--
Tony and Zuzana's World - Monday, October 31, 2011
- Type-Safe Two-Way Data Binding with INotifyPropertyChanged
Anyone who’s developed a UI application using Windows Forms, WPF or Silverlight is probably aware that you have to implement the INotifyPropertyChanged interface to get two-way data binding between UI elements and an underlying data source. The problem is that you have to pass the name of the property as a string when you fire the event from each property setter. In this post I will show you a better way, namely, how you can use lambda expressions instead of strings to pass the property name. You can download the code for this blog post here. null ). Body).Member.Name;
Tony and Zuzana's World - Tuesday, January 25, 2011
487 Articles match "Windows"
See all articles with
| The Latest from DevelopMentor || MORE |
| | The real lessons of Lego (for software)
We start with the standard Lego brick: Of course there are multiple colours: And a few variations: Which now allows us to snap together a useful wall: Walls are good but to build anything more interesting we need some more pieces, maybe some flat pieces: Or some thinner pieces, or some bigger pieces: It might also help to have some angled pieces, you know for roofs and things, and remember the slant can go either way, up or down: I think we’re heading for a house so we will need some doors and windows: Personally I like wheels, I like things to move, and so do my kids. Heard that? Allan Kelly's Blog - Monday, June 3, 2013
Installing MongoDB on Windows and OS X
Here are two 7-minute walkthroughs for installing MongoDB as a Windows service / OS X daemon. Windows: OS X: Feedback welcome. 'Ready to get started with NoSQL and MongoDB? These are both excepts from my upcoming online MongoDB course for DevelopMentor. You can take the first 1 1/2 hours for free here: Early access: MongoDB and NoSQL for.NET developers. cheers. mkennedy. Filed under: NoSQL Tagged: LearningLine , NoSQL , Open Source , Screencasts. NoSQL LearningLine Open Source Screencasts Michael C. Kennedy's Weblog - Thursday, May 2, 2013
A Roundup of MongoDB Management Tools
Robomongo, price: $0 / open-source, platforms: Windows, OS X, Linux. The shell , price: $0 / open-source, platforms: Windows, OS X, Linux. Mongovue , price: $0 / $35 / $up, platforms: Windows. MongoVUE is an innovative MongoDB desktop application for Windows OS that gives you an elegant and highly usable GUI interface to work with MongoDB. LINQPad, , price: $0 / $39, platforms: Windows. REST view, price: $0 / open-source, platforms: Windows, OS X, Linux. Genghis, price: $0 / open-source, platforms: Windows, OS X, Linux. The news is good. link]. Michael C. Kennedy's Weblog - Monday, April 22, 2013
| The Best from DevelopMentor || MORE |
- Using Windows 7 Search to delete ‘obj’ folders
One easy way is to use Windows 7 Search to look for all the ‘obj’ folders and just delete them manually. For a complete overview of the Windows 7 Search syntax go to: [link]. Tags: Windows 7 Visual Studio will create ‘obj’ folders within your solution to store a bunch of temporary files. You can remove these files in a number of ways. To do this I use the ‘kind’ keyword in the query box. Tip: Just typing ‘kind:’ will give you a list of choices to choose from.
The Blomsma Code - Tuesday, February 9, 2010
- Playing around with Windows Live Sync 2011 beta
I have been an avid user of Mesh and was so pleased with the beta that I was hesitant to switch to Windows Live Sync 2011 beta. You may want to check with you IT guy to see how he feels about the security risks, but for me this works really well (I do make sure that my Windows Live, Facebook and Google passwords are all different!). Tags: Windows Live But since the Mesh page started saying that the service is to be replaced I figured I ‘d better get my machines switched over. For those who don’t know: Live Sync allows you to synchronize folders between devices.
The Blomsma Code - Sunday, September 12, 2010
- Unblocking assemblies in Windows 7
I just ran into a little problem when attempting to run a Visual Studio unit test on my Windows 7 machine. Tags: NET C# Windows 7 downloaded log4net.dll and wanted to use it in a project, but when running the unit test I ran into the following error: Failed to queue test run 'Mark@L-ONE 2009-10-11 14:08:38': Test Run deployment issue: The location of the file or directory 'c:usersmarkdocumentsvisual studio 2008projectssourcesdevelopone.myproject.unittestsbindebuglog4net.dll' is not trusted. Turns out that a downloaded file is blocked.
The Blomsma Code - Sunday, October 11, 2009
- Have to learn Japanese
Tags: Windows Live
The Blomsma Code - Tuesday, December 1, 2009
- Books on Windows Phone 7 development
Here are some books for people that are looking to get into Windows Phone 7 development (some are pre-order only at this time): Microsoft XNA Framework Programming for Windows Phone 7. Microsoft Silverlight Programming for Windows Phone 7. Windows Phone 7 Plain & Simple. Developing Windows Phone 7 Applications. Windows Phone 7
The Blomsma Code - Thursday, December 2, 2010