.net

Throttling in WCF (Part-27)

Posted on

Throttling controls how many messages are processed. What is Throughput? Throughput is the amount of workdone in a given time.In addition to Service InstanceContextMode and Concurrency mode, Throttling settings also influence the Throughput of a WCF service. Throttling settings can be specified either in code or in config file. In app.config file:

In code:

[…]

.net

SessionMode Enumeration in WCF (Part-26)

Posted on

Use SessionMode enumeration with the service contract to allow or restrict bindings to use sessions. Allowed: Service contract supports sessions if the binding supports them This is default value if SessionMode is not defined in service contract NotAllowed: Service contract doesnot support bindings that initiate sessions Required: Service contract requires a binding that supports session […]

.net

Advantages and Disadvantages of hosting WCF service in iis (Part-22)

Posted on

Advantages of Hosting WCF service in iis: No custom code is required to host the service The servicehost directive in .svc file is responsible for creating an instance of Service host when required, so no need to write custom code for hosting Automatic message based activation We need not start/stop the service manually.iis provides message […]

.net

Hosting WCF service in iis(Part-21)

Posted on

To Host a WCF service in iis,we will make use of same WCFSelfHostService webservice that we have created. To host WCF service in iis: Right click on solution–>Add–>new website–>WCF service–>Save it in same folder where we have WCFSelfHostService and name it WCFIISHost. Delete cs files from appcode folder because we wanted to host existing service Add […]

.net

Advantages and Disadvanatages of hosting WCF service in windows service(Part-20)

Posted on

Advantages of hosting WCF service in windows service: Windows service runs in background and can start Automatically In case of failure,Windows service can be configured to restart automatically Windows service supports all binding and transport protocol The WCF service that the windows service hosts starts automatically or you can manually start or stop the service […]

.net

Hosting a WCF service in Windows service(Part – 19)

Posted on

This is in continuation to part 17. Self Hosting WCF service Let’s create a Windows service and add it to WCFSelfHostService solution. Right click on solution–>add–>New Project–>Rename it to WindowsServiceHost. Add reference to WCFSelfHostService Add reference to System.ServiceModel Add new configuration file to WindowsServiceHost–>Right click on WindowsServiceHost–>Add app configuration file We will copy the configuration […]

.net

What is a windows service(Part-18)

Posted on

In this article,we will cover what is a windows service? How is it different from regular applications? What is the use of windows service? How to view all the services installed on a windows machine? Windows service is an application or program running on a windows machine. Windows service runs in the background They can […]