Wcf Transaction

A transaction is a collection of operations with the following properties: Atomicity. This ensures that either all of the updates completed under a specific transaction are committed and made durable or they are all aborted and rolled back to their previous state. Consistency. This guarantees that the changes made under a transaction represent a transformation… Read More Wcf Transaction

Wcf Message Contract

in IServcie1 : [ServiceContract] public interface IService1 { [OperationContract] void Display(Employee empobj); [OperationContract] Employee ModifyEmployeeDetails(Employee empobj); } [MessageContract] public class Employee { [MessageHeader] public int empid { get; set; } [MessageBodyMember(ProtectionLevel = System.Net.Security.ProtectionLevel.Sign)] public string  empname { get; set; } } In Service1 Class : public class Service1 : IService1 { #region IService1 Members public… Read More Wcf Message Contract

Wcf Throttling

Throttling WCF throttling provides some properties that you can use to limit how many instances or sessions are created at the application level. Performance of the WCF service can be improved by creating proper instance. Attribute Description maxConcurrentCalls Limits the total number of calls that can currently be in progress across all service instances. The… Read More Wcf Throttling


config file : for adding myqueue in the private queue <appSettings> <add key=”qname” value=”.\private$\myqueue”/> </appSettings> <system.serviceModel> <services> <service name=”WcfServiceNetMSMQ.Service1″ behaviorConfiguration=”WcfServiceNetMSMQ.Service1Behavior”> <host> <baseAddresses> <add baseAddress = “http://localhost:8010/WcfServiceNetMSMQ/Service1/&#8221; /> </baseAddresses> </host> <endpoint address =”net.msmq://localhost/private/myqueue” binding=”netMsmqBinding” contract=”WcfServiceNetMSMQ.IService1″> <identity> <dns value=”localhost”/> </identity> </endpoint> <endpoint address=”mex” binding=”mexHttpBinding” contract=”IMetadataExchange”/> </service> </services> <behaviors> <serviceBehaviors> <behavior name=”WcfServiceNetMSMQ.Service1Behavior”> <serviceMetadata httpGetEnabled=”True”/> <serviceDebug includeExceptionDetailInFaults=”False” /> </behavior>… Read More netMsmqbinding