Questions tagged [wcf-instancing]
8 questions
4
votes
1 answer
ReaderWriterLock not working in ServiceBehavior constructor
I have a WCF service where InstanceContextMode is Single and ConcurrencyMode is Multiple. The aim is to create a cache of values on instantiation, without holding up other service calls not reliant upon the creation of the cache.
This way only…

Microsoft Developer
- 1,919
- 1
- 20
- 27
2
votes
2 answers
How does WCF instance work
I am trying to understand how instances with WCF works. I have a WCF service which the InstanceContextMode set to PerCall (so for each call of every client a new instance will be created) and ConcurrencyMode set to Single (so the service instance is…

Amitesh
- 677
- 1
- 10
- 24
1
vote
1 answer
WPF: How do I address a usercontrol that I Instantiated at runtime?
I have added a usercontrol to my project like this:
Public Sub clickAutoDrillLeft(ByVal sender as Object, ByVal e as System.Windows.RoutedEventArgs)
Dim LSliderItem as New TriplexAmpsControl
me.LeftSlider.Items.Add(LSliderItem)
End…

MBunds
- 27
- 1
- 5
1
vote
1 answer
WCF Service API Design
I am new to WCF . I am designing an ERP system based on WCF/WPF which has the following modules:
a) Estimating
b) Planning
c) Scheduling
d) Accounting
e) Inventory
I have the following questions:
Which instancing mode should I choose? The…

Pradeep
- 299
- 2
- 8
- 15
0
votes
1 answer
Is role based security in WCF dependent on the Instance Mode?
We are using UserNamePasswordValidator and an IAuthorizationPolicy to load custom role data into an IPrincipal object for authentication and some business level rights on our server side.
Thus, we are using Thread.CurrentPrincipal inside our service…

Andre Luus
- 3,692
- 3
- 33
- 46
0
votes
1 answer
Instancing in WCF - Query specific to Mode.PerSession
I am using Instancing mode as PerSession - If a client makes multiple request for a given method - o/p should be incremented as per below code snippet b/c Instancing mode is
PerSession,
However I am always getting value as 1 for every call, ideally…

Amit
- 3,358
- 9
- 34
- 48
0
votes
1 answer
WCF Authentication for Per Call Instance Mode
I am developing a WCF based ERP application. My service is using Per Call instance mode and Concurrency mode Multiple.
I am using custom UserName/Password validator for authentication. Since for Per Call services, services instance is created…

Pradeep
- 299
- 2
- 8
- 15
0
votes
1 answer
Reuse WCF server instance between operations, without concurrency
How can I make the WCF server instance (the instance of the class in the .svc.cs / .svc.vb file) stay alive between requests?
It's a stateless, read-only type of service: I'm fine with different clients reusing the same instance. However, it's not…

hraban
- 1,819
- 1
- 17
- 27