Solved

wcf multithreading

Posted on 2010-09-02
4
715 Views
Last Modified: 2013-11-27
Hello,

I am writing a WCF File Server(framework 3.5). Currently it is working for one client.But  I want multiple clients to upload files to my server simultaneously.
How can i do that ?

thanks.
0
Comment
Question by:parabellum
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:p_davis
ID: 33590182
that's what the client to service relation is for in wcf

you need to make a service contract with a method that accepts calls from clients.

what do you have so far? what is the issue that you are experiencing?
0
 

Author Comment

by:parabellum
ID: 33590499

Currently my service behavior is:
InstanceContextMode.Single,
         ConcurrencyMode = ConcurrencyMode.Multiple

In this setting, while one client is uploading, the others are having problems. It seems like only one client
can upload file at a time.
0
 
LVL 22

Accepted Solution

by:
p_davis earned 500 total points
ID: 33590717
ours is a winforms solution but we use

the same concurrency mode but use InstanceContextMode.PerSession

on the client we use the same concurrency mode

concurrency mode
http://msdn.microsoft.com/en-us/library/system.servicemodel.concurrencymode.aspx


what exactly are the problems that you are seeing/they are reporting
0
 

Author Comment

by:parabellum
ID: 33591065

Well the problem is; only one client is able to upload file. The others must wait  each other. But i want
say 5  clients upload at the same time.
I will change  InstanceContextMode to  InstanceContextMode.PerSession.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now