473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Custom TransformerProvider in Configuration Application Block

Hello,

How can we create a custom TransformerProvider (deriving from XmlSerializerTransformer with some minor changes) and make it work with the Enterprise Library Configuration Application Block?

Thank you!
Best wishes,
Alex.

--
Address email to user "response" at domain "alexoren" with suffix "com"
Sep 2 '05 #1
1 1360
Hi Alex,

Regarding this issue, I would like to tell you that it is simple to create a
custom TransformerProvider deriving from XmlSerializerTransformer, you only
need to override its methods properties, like Deserialize, Serialize and
ConfigurationName. The tough one is to use it in Application blocks. To use
your customized XmlSerializerTransformer, you need to create your own
XmlSerializerTransformerData class or modify the source code of
XmlSerializerTransformerData. The dataTransformer is set in app.config file:

<dataTransformer xsi:type="XmlSerializerTransfo*rmerData" name="Xml
Serializer Transformer">
<includeTypes />
</dataTransformer>

If you created customized XmlSerializerTransformerData, you should change
value here.

If you don't want to create a customized XmlSerializerTransformerData, you
can modify its source code so that it will load your own.
XML SerializerTransformer:

XmlSerializerTransformerData.c*s:

[XmlIgnore]
public override string TypeName
{
get { return
typeof(XmlSerializerTransforme*r).AssemblyQualifie dName; }
set
{
}
}

Replace " XmlSerializerTransformer " with your own XmlSerializerTransformer
here.

Hope this helps.

Best Regards,

Mona [Grapecity]

"Alex" <in******@online.nospam> wrote in message
news:Os***************@TK2MSFTNGP11.phx.gbl...
Hello,

How can we create a custom TransformerProvider (deriving from
XmlSerializerTransformer with some minor changes) and make it work with the
Enterprise Library Configuration Application Block?

Thank you!
Best wishes,
Alex.

--
Address email to user "response" at domain "alexoren" with suffix "com"
Sep 7 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Todd Beaulieu | last post by:
Hello, I'm using the configuration block to store user settings in the app.config file. As this exe will reside on a network drive, I can't have users trying to update the master app.config...
1
by: Ollie Riches | last post by:
I have written a custom logging sink for the enterprise library logging application block (June 2005). I have been able to configure it as expected from the UI config tool (EntLibConfig.exe). I...
5
by: DSISupport | last post by:
Hi, I'm planing to use the enterprise library in a new web project, and I was looking at the Security application block which came by defaul with one provider called database authentication...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
1
by: Alex | last post by:
Hello, How can we create a custom TransformerProvider (deriving from XmlSerializerTransformer with some minor changes) and make it work with the Enterprise Library Configuration Application Block?...
3
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application....
6
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
5
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called...
2
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.