Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6138907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:55:27+00:00 2026-05-23T17:55:27+00:00

I am writing a WCF web service which allows to register new users in

  • 0

I am writing a WCF web service which allows to register new users in system. So I have the following operation contract:

 [ServiceContract]
 public interface ISecurityService
 {
     /// <summary>
     /// Register new user in system, if no exceptions were thrown 
     /// user was registered successfully
     /// </summary>
     [OperationContract]
     [FaultContract(typeof(SecurityFaultException))]
     void Register(string userName, string password);
 }

The idea is simple how to synchronize Register method invocation to prevent registration of two users with the same names?

I thought about using IsolationLevel.Serializable but I’m not sure about this solution. Can somebody give me a good advice or share some good practice about WCF services synchronization.

UPDATED:
I save users in a database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:55:28+00:00Added an answer on May 23, 2026 at 5:55 pm

    If you save users in db it’s enough to use default Isolationlevel(ReadCommited) an just put a unique constraint or primary key in UserName column that prevent duplicate value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When writing a Silverlight app hooked up to a WCF Web Service, the only
I am writing WCF service that uses wsHttpBinding binding, which is not hosted in
I have a WCF service that is responsible for writing a log file. I
I'm currently writing a WCF web service that uses LINQ to SQL to fetch
I am writing a C# WinForms application that consumes a web service using WCF.
So I came across an interesting problem today. We have a WCF web service
I am writing a Silverlight app calling WCF service. Another solution contains following projects
Hello I have a simple wcf service like this, with a test method which
I'm writing a WCF service to replace a current web service, and I'm having
I am writing a web service using WCF. I created data contracts. I created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.