TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pramod Thakur
270
6.8k
2.3m
Issue with implementing multiple service in wcf
Jul 24 2014 3:43 AM
Hi,
i have a issue with implementing multiple service in wcf.. i hv following code
[ServiceContract]
public interface IMultipleService
{
[OperationContract]
string DoWork();
}
[ServiceContract]
public interface IMultiplePublicService
{
[OperationContract]
string DoPublicWork();
}
[ServiceContract]
public interface IMultipleConfidentialService
{
[OperationContract]
string DoConfidentialWork();
}
// Service implementation
public class MultipleService : IMultipleService,IMultiplePublicService,IMultipleConfidentialService
{
public string DoWork()
{
return "Method1 : DoWork called !!";
}
public string DoPublicWork()
{
return "Method2: DoPublicWork called !!";
}
public string DoConfidentialWork()
{
return "Method3: DoConfidentialWork called !!";
}
}
If i write [ServiceBehaviorAttribute(InstanceContextMode = InstanceContextMode.PerCall)] so all service contract implement PerCall session mode. I want to impliment IMultipleService as PerCall sessionmode, IMultiplePublicService as PerSession and IMultipleConfidentialService as Single..
Please help..?
Reply
Answers (
1
)
how to consume wcf service in MVC-4 webapi
WCF