Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 730
  • Last Modified:

wcf multithreading

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
parabellum
Asked:
parabellum
  • 2
  • 2
1 Solution
 
p_davisCommented:
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
 
parabellumAuthor Commented:

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
 
p_davisCommented:
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
 
parabellumAuthor Commented:

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now