kkolli

Custom Delivery Channel Configuration issue between multiple Notifications

Discussion created by kkolli on Nov 14, 2013
Latest reply on Dec 9, 2013 by Mike Zboray

Hi,

 

 

 

I have a Custom delivery channel which takes an xml file path as parameter and all the configuration details like username and pwd are in that xml file.

 

This particular delivery channel is subscribed by multiple notifications.

 

For example NotificationA will have values coming from A.xml and NotificationB will have its values coming from B.xml and so on,. we have 5 or 6 notifictions set up like that, all of them seems to work fine except one.

 

The problem we are seeing is NotificationA is getting values from B.xml, however the settings clearly shows, the file path given is A.xml.

 

if we disable NotificationB, then NotificationA is getting values from c.xml, which belongs to NotificationC.

 

 

 

Code from custom Delivery channel

 

 

 

#region

 

 

 

Overrides

 

       

 

/// <summary>

 

       

 

/// Gets or sets the config string.

 

       

 

/// </summary>

 

       

 

/// <value>The config string.</value>

 

       

 

public override string ConfigString

 

        {

 

           

 

get

 

            {

 

               

 

return _filePath;

 

            }

 

           

 

set

 

            {

 

               

 

if (_filePath != value)

 

                {

 

                    _filePath =

 

value;

 

                   

 

// SaveConfigChanges must be called in order for the ConfigString to be saved

 

                    SaveConfigChanges();

 

                }

 

            }

 

        }

 

       

 

/// <summary>

 

       

 

/// Gets the type of the editor.

 

       

 

/// </summary>

 

       

 

/// <value>The type of the editor.</value>

 

       

 

/// <remarks>

 

       

 

/// If this property is not overwritten, the default editor is used.

 

       

 

///</remarks>

 

       

 

public override Type EditorType

 

        {

 

           

 

get

 

            {

 

               

 

return typeof(OIDCParam);

 

            }

 

        }

 

 

 

and from the Editor

 

public

 

 

 

OIDCParam(object outageDC)

 

        {

 

            InitializeComponent();

 

           

 

if (outageDC is OutageDeliveryChannel)

 

            {

 

                _dc = (

 

OutageDeliveryChannel)outageDC;

 

                txtFilename.Text = _dc.FilePath;

 

            }

 

           

 

else

 

            {

 

               

 

throw new ArgumentException();

 

            }

 

        }

 

       

 

public override string GetConfigString()

 

        {

 

            _dc.FilePath = txtFilename.Text;

 

           

 

return _dc.FilePath;

 

        }

 

 

 

Let me know if the question is not clear or you need any more information.

 

 

 

Thank you for your help.

 

Keerthi Kolli

Outcomes