Inline C# vs External Assemblies
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Inline C# vs External Assemblies




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Inline C# vs External Assemblies  
JC


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 10:52 PM

Hello,

I am currently working on a BizTalk project that has an external C# assembly
 to provide some date conversion functions using the System.Globalisation.Ca
lendar class within a map (specifically to return the current week of the ye
ar).

The function itself is not particually complicated and I would prefer to inc
lude it as inline C# in the map to remove the need for the external assembly
. The only issue here is that the System.Globalisation namespace is not supp
orted by this. Does anyone
know:

a) if it is possible to specify System.Globalisation (or any other namespace
s) for use in Inline C#.
b) any alternatives to using the Calendar class to return the current week o
f the year that would be compatible with inline C# (e.g. at time of posting 
we are in week 27 of this current calendar year).
c) tips and tricks to ensure that deployment of external assemblies go smoot
hly when updating an existing BizTalk project. I know that the strong naming
 of assemblies requires the version number to match in the GAC but BizTalk s
eems to be somewhat temprem
ental when it comes to re-deploying newer versions of files. There have been
 times when a service restart or a total rebuild of a project have been the 
only way for biztalk to shake off the behaviour of an 'older' version of an 
orchestration and external
assembly from its 'memory'.

Regards.





[ Post a follow-up to this message ]



    RE: Inline C# vs External Assemblies  
David Downing [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 10:52 PM

You should be able to reference the calendar class in an inline assembly by
fully qualifying the type you are trying to reference.  See the following
inline script:

public string MyCulture()
{
return System.Globalization.CultureInfo.CurrentCulture.EnglishName;
}

This generates the following on my computer when the map is tested:

<ns0:Root xmlns:ns0="http://MappingTest.DestinationSchema">
<WeekOfTheYear>English (United States)</WeekOfTheYear>
</ns0:Root>


Dave

--------------------[vbcol=seagreen] 
assembly to provide some date conversion functions using the
System.Globalisation.Calendar class within a map (specifically to return
the current week of the year).[vbcol=seagreen] 
include it as inline C# in the map to remove the need for the external
assembly. The only issue here is that the System.Globalisation namespace is
not supported by this. Does anyone know:[vbcol=seagreen] 
namespaces) for use in Inline C#.[vbcol=seagreen] 
week of the year that would be compatible with inline C# (e.g. at time of
posting we are in week 27 of this current calendar year).[vbcol=seagreen] 
smoothly when updating an existing BizTalk project. I know that the strong
naming of assemblies requires the version number to match in the GAC but
BizTalk seems to be somewhat tempremental when it comes to re-deploying
newer versions of files. There have been times when a service restart or a
total rebuild of a project have been the only way for biztalk to shake off
the behaviour of an 'older' version of an orchestration and external
assembly from its 'memory'.[vbcol=seagreen] 

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:15 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register