enforcement

How can I limit calls for a WCF service within a time span?

Hello, I want to write a WCF service that can't run more than X times per hour. I want the service to suspended messages to a queue if the service was called more than x time in the last 60 minutes. Any ideas how can one limit the service? I am willing to write custom components in the WCF stack. ...

Is the MS Ribbon/Office UI License worth worrying about?

Imagine I want to create an application which is very similar to MS Word 2007, using C++ in VS2008 and the MFC Feature Pack. For the ribbon, there are 3 options available to me: Use the ribbon from MFC Feature Pack without acquiring a license. Probably dodgy in the long run. You're all right until your product becomes a global success,...

Is there a way I can enforce a method to follow certain method signature?

let's say I have public delegate DataSet AutoCompleteDelegate( string filter, long rowOffset); can I make the following class to enforce that method signature? (just a conjured up idea): public class MiddleTier { [Follow(AutoCompleteDelegate)] public DataSet Customer_AutoComplete(string filter, long rowOffset) { ...

Enforce semicolons in my Javascript?

How best does the developer who's decided he likes semicolons at the end of his Javascript statements enforce that expectation technically for himself? I'm using Visual Studio (ASP.NET webapps), but I'd love to hear about solutions for any environment. ...

Is there a way to enforce runtime type-checking in Objective-C on Cocoa?

Hi I'm finding a way to enforce runtime type checking or such things in Objective-C on Cocoa. This is my code sample. I expected runtime error about wrong assignment to variable 'b'. But it wasn't. Compiled and executed without any error. #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePoo...

Project management: Implementing custom errors in VS compilation process

AGAIN: If you're voting -1, please leave a comment explaining why. This post isn't about whether or not you approve if this approach, but how to go about it. Like many architects, I've developed coding standards through years of experience to which I expect my developers to adhere. This is especially a problem with the crowd that beli...

Why doesn't VB.NET enforce handling exceptions?

Possible Duplicate: Why are Exceptions not Checked in .NET? If I remember correctly, Java enforces catching and handling any exceptions a called method may throw. Why doesn't .NET do the same? ...

Python 2.x: how to automate enforcing unicode instead of string?

How can I automate a test to enforce that a body of Python 2.x code contains no string instances (only unicode instances)? Eg. Can I do it from within the code? Is there a static analysis tool that has this feature? ...