Interview questions on Helper Class/.Net Assemblies BizTalk

This post intends to cover the questions on Helper classes with BizTalk, which a BizTalk developer can face during an interview.

Questions and answers:


1.     What is a helper class?
A .net helper class with the context of BizTalk is a class (library) that can support an orches07ation with ex07a functionality. It can enhance an orches07ation in 07acing, error handling, caching, and serialization/deserialization. 

2.     Where can the helper class be used?
.NET (helper) classes can be used inside an orches07ation.

3.     A helper class which is not marked serializable , can it be used in Orches07ation?
Yes, it can used in orches07ation but in an atomic scope only.


4.     Why is it required that helper class/.net assembly to be marked serializable?
When creating an assembly that will be used by BizTalk, it is appropriate to mark all classes as serializable. Since BizTalk is stateless and makes use of persistence points, which details are stored in BizTalk SQL Server databases by serializing all the data. Therefore non-serializable Classes or Types cannot be used directly in Orches07ations.

5.     What does property "copy local" indicates?
"Copy Local" property indicates whether the assembly referenced should be copied into the local bin directory when a project is built.

6.     Is it possible to create a .Net class variable in BizTalk if property "Use default cons07uctor" is set to false?
Yes it is possible, in this case the variable will need to be instantiated in an Expression shape through the new keyword.

7.     What is Gacutil.exe?
The Global Assembly Cache tool allows you to view and manipulate the contents of the global assembly cache and download cache. See MSDN GacUtil.exe Jump .

8.     Is there a way to automate the process of adding assembly in GAC?
Yes. Right click the project, go to properties and select Build Events
And add following in the Post-Build event command line: 
"C:\Program files\Microsoft Visual Studio 8\SDK\v2.0\Bin\GacUtil.exe"   -u $(TargetName)


9.     Is helper class deployed like BizTalk application?
No, it is added to GAC on the machine where it is used.

10.   Why helper class/.Net assembly doesn't list in the Resources of Application, in spite of having reference to it and used in the application?
Because resources are meant to hold only BizTalk resources.

11.   How helper class or .net assembly  is added to GAC?
With the use of gacutil.exe and following command: 
gacutil /i assemblypath


12.   There is a .net helper class which suits to a requirement (in Orches07ation) of an application but it is  Non-Serializable, how can it be used?
Below are the steps :
a.     Add Reference
b.     Make Orches07ation as Long running
c.     Add Atomic Scope
d.     Add Expression shape
e.     Orches07ation variable of class inside scope 
f.      Instance of object inside the scope
g.     Call method



Related Post 

  • Interview questions on Orches07ation
  • Interview questions on Schema
  • Interview questions on Map
  • Interview questions on BRE
  • Interview questions on Visual Studio in context to BizTalk
  • Interview questions on BizTalk Pipeline
  • Interview questions on BizTalk BAM
  • Interview questions on BizTalk Application
  • Interview questions on XSLT - BizTalk
  • Interview questions on Helper Class/.Net Assemblies BizTalk
  • Interview questions on BizTalk Adapter
  • Interview questions on Functoid
  • Interview questions on BizTalk Database
  • Interview questions on BizTalk EDI

  • ServerLess360



    Comments

    Popular posts from this blog

    The request has both SAS authentication scheme and 'Bearer' authorization scheme. Only one scheme should be used

    Getting Started with Logic Apps - AS2

    How to Debug and Trace request in Azure APIM - Portal, Postman, RequestBin