What is attribute you give to expose an operation in WCF?

Monday, September 14, 2009


[OperationContract]


www.codecollege.NET

What is attribute you give to make an interface into a WCF Service Contract?


[ServiceContract]


www.codecollege.NET

What is the Class or Interface for a WCF Contract?


Interfaces annotated with System.ServiceModel attributes


www.codecollege.NET

What is the Class or Interface for a WCF Binding?


System.ServiceModel.Binding


www.codecollege.NET

What is the Class or Interface for a WCF Address?


System.Uri


www.codecollege.NET

What is the Class or Interface for a WCF Endpoint?


System.ServiceModel.ServiceEndpoint


www.codecollege.NET

How will you check whether automated build is successful and call a custom task on successful build?

Sunday, September 13, 2009


You can do that by providing the following config entry in the MS Build or TFS Build config file,
<GetBuildProperties TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Condition=" '$(IsDesktopBuild)' != 'true' ">
<Output TaskParameter="CompilationSuccess" PropertyName="LocalCompilationSuccess" />
</GetBuildProperties>




<Exec Condition="'$(LocalCompilationSuccess)'=='true'" Command="do_the_voodoo"/>


www.codecollege.NET
Blog Widget by LinkWithin