Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

wcf multithreading

Posted on 2010-09-02
4
723 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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