Service Interceptor Help!

Hi Guys

I have been trying to build my first ever Service Interceptor but I have hit a few issues and wondered if any of you guys could help!  In an attempt to get this to work I have just tried to write a line in the Tessitura Log as per Ryan's "Hello World" interceptor but I still can't even get this to write in to the log!  Any help would be great.

I have put together a very simple interceptor that looks like below and built in visual studio and copied over DLL to the plugins folder.  I have enabled both plugs and reload plugin config. 

using Tessitura.Services.Common.Interceptor.Client;
using Tessitura.Services.Common.Logger;

namespace Tessitura.WMC.Interceptor
{
public class HelloInterceptor
{
   public static PluginData Operation(PluginData input)
   {
           input.Logger.Trace("Hello World!!");
           return input;
    }

}
}

I have registered this as a plugin like so in the xml doc.

<PluginConfigs>
   <PluginConfig>
      <UriMatch>CRM/*</UriMatch>
      <Verb>GET</Verb>
      <FullPluginName>Tessitura.WMC.Interceptor.HelloInterceptor</FullPluginName>                
      <PluginPlacement>POST</PluginPlacement>
   </PluginConfig>
</PluginConfigs>

I have looked in the TessituraService Logs and I can't see anything that might cause a problem!  I did have a typo in my XML which I did fix.  So a bit stuck on how to get the "Hello World" to appear in the logs.  I have tried load of different UriMatches including <UriMatch>CRM/Constituents/*/Snapshot</UriMatch>  but still nothing appears in the logs after I search for and open a constituent record.

Do you guys have anything that you think i should check?  Any help would be much appreciated!

Thanks

Nick

 

 

 

Parents
  • Have you changed the following setting in the service web.config?  This is the global kill switch for all plugins.  This holds true for v11 in each individual service and in the TessituraService for v12+.

     

        <add key="EnablePlugins" value="false"/>

     

    You can also set this for debugging which will reload plugin classes with each request, but don’t leave it set to True in a production environment (because it’s a performance hit and is only meant for a quick reload).

     

        <add key="ReloadPluginConfig" value="false"/>

     

     

    =>Ryan Creps

    @Tessitura Network

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Nick Insell
    Sent: Tuesday, September 2, 2014 11:39 AM
    To: Ryan Creps
    Subject: [Tessitura Technical Forum] Service Interceptor Help!

     

    Hi Guys

    I have been trying to build my first ever Service Interceptor but I have hit a few issues and wondered if any of you guys could help!  In an attempt to get this to work I have just tried to write a line in the Tessitura Log as per Ryan's "Hello World" interceptor but I still can't even get this to write in to the log!  Any help would be great.

    I have put together a very simple interceptor that looks like below and built in visual studio and copied over DLL to the plugins folder.  I have enabled both plugs and reload plugin config. 

    using Tessitura.Services.Common.Interceptor.Client;
    using Tessitura.Services.Common.Logger;

    namespace Tessitura.WMC.Interceptor
    {
    public class HelloInterceptor
    {
       public static PluginData Operation(PluginData input)
       {
               input.Logger.Trace("Hello World!!");
               return input;
        }

    }
    }

    I have registered this as a plugin like so in the xml doc.

    <PluginConfigs>
       <PluginConfig>
          <UriMatch>CRM/*</UriMatch>
          <Verb>GET</Verb>
          <FullPluginName>Tessitura.WMC.Interceptor.HelloInterceptor</FullPluginName>                
          <PluginPlacement>POST</PluginPlacement>
       </PluginConfig>
    </PluginConfigs>

    I have looked in the TessituraService Logs and I can't see anything that might cause a problem!  I did have a typo in my XML which I did fix.  So a bit stuck on how to get the "Hello World" to appear in the logs.  I have tried load of different UriMatches including <UriMatch>CRM/Constituents/*/Snapshot</UriMatch>  but still nothing appears in the logs after I search for and open a constituent record.

    Do you guys have anything that you think i should check?  Any help would be much appreciated!

    Thanks

    Nick

     

     

     




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

Reply
  • Have you changed the following setting in the service web.config?  This is the global kill switch for all plugins.  This holds true for v11 in each individual service and in the TessituraService for v12+.

     

        <add key="EnablePlugins" value="false"/>

     

    You can also set this for debugging which will reload plugin classes with each request, but don’t leave it set to True in a production environment (because it’s a performance hit and is only meant for a quick reload).

     

        <add key="ReloadPluginConfig" value="false"/>

     

     

    =>Ryan Creps

    @Tessitura Network

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Nick Insell
    Sent: Tuesday, September 2, 2014 11:39 AM
    To: Ryan Creps
    Subject: [Tessitura Technical Forum] Service Interceptor Help!

     

    Hi Guys

    I have been trying to build my first ever Service Interceptor but I have hit a few issues and wondered if any of you guys could help!  In an attempt to get this to work I have just tried to write a line in the Tessitura Log as per Ryan's "Hello World" interceptor but I still can't even get this to write in to the log!  Any help would be great.

    I have put together a very simple interceptor that looks like below and built in visual studio and copied over DLL to the plugins folder.  I have enabled both plugs and reload plugin config. 

    using Tessitura.Services.Common.Interceptor.Client;
    using Tessitura.Services.Common.Logger;

    namespace Tessitura.WMC.Interceptor
    {
    public class HelloInterceptor
    {
       public static PluginData Operation(PluginData input)
       {
               input.Logger.Trace("Hello World!!");
               return input;
        }

    }
    }

    I have registered this as a plugin like so in the xml doc.

    <PluginConfigs>
       <PluginConfig>
          <UriMatch>CRM/*</UriMatch>
          <Verb>GET</Verb>
          <FullPluginName>Tessitura.WMC.Interceptor.HelloInterceptor</FullPluginName>                
          <PluginPlacement>POST</PluginPlacement>
       </PluginConfig>
    </PluginConfigs>

    I have looked in the TessituraService Logs and I can't see anything that might cause a problem!  I did have a typo in my XML which I did fix.  So a bit stuck on how to get the "Hello World" to appear in the logs.  I have tried load of different UriMatches including <UriMatch>CRM/Constituents/*/Snapshot</UriMatch>  but still nothing appears in the logs after I search for and open a constituent record.

    Do you guys have anything that you think i should check?  Any help would be much appreciated!

    Thanks

    Nick

     

     

     




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

Children
No Data