Relative Content

Tag Archive for .net

How to properly localize registration form

I’ve a very old .NET Webforms application which was using old-fashioned forms authentication. I have sucessfully migrated the whole authentication mechanism to .NET Identity along with OWIN middleware. Everything works just as expected (2fa is also working as a charm). I’ve just one question – I’m completly unsure on how to localize error messages : such as e-mail is required or this user id is already taken. The web.config for this app is set to support PL culture and all external components (such as Devexpress) properly adhere to this setting.

How to properly localize registration form

I’ve a very old .NET Webforms application which was using old-fashioned forms authentication. I have sucessfully migrated the whole authentication mechanism to .NET Identity along with OWIN middleware. Everything works just as expected (2fa is also working as a charm). I’ve just one question – I’m completly unsure on how to localize error messages : such as e-mail is required or this user id is already taken. The web.config for this app is set to support PL culture and all external components (such as Devexpress) properly adhere to this setting.

Alternative to XML / XSLT for artifact generation?

The scenario: A system needs to produce a variety of artifacts to present to end-users during the normal course of business. Examples of these artifacts would be permits, invoices, or receipts — imagine any online app that gives you one of those “print this page for your records” pages. I’m working on a system that […]

Multi-threaded application design

I’m currently planning a Windows service. It will be a multi-threaded application which will continuously check for database records and process them. My first thoughts were to set a number of max available threads and create new thread for each process. This works OK but since I’m creating a new thread for every new process I fear that its overhead will multiply if there are lots of records to process. My question is, is this a good design or would you recommend any other solutions?

Clients with multiple proxy and multithreading callbacks

I created a sessionful web service using WCF, and in particular I used the NetTcpBinding binding. In addition to methods to initiate and terminate a session, other methods allow the client to send to one or more tasks to be performed (the results are returned via callback, so the service is duplex), but they also allow you to know the status of the service.

Why all classes in .NET globally inherits from Object class?

Its very interesting for me which advantages gives “global root class” approach for framework.
In simple words what reasons resulted the .NET framework was designed to have one root object class with general functionality suitable for all classes.

Is it reasonable to use POCO’s that inherit from DTO’s?

I’m designing a tiered .NET application, and I want to use the Code First approach. I’m new to this, so I’m struggling to envision how it ought to be designed. Would the following be a reasonable approach? What problems or limitations might I run into?