예제 #1
0
 /// <summary>
 /// This method loads the custom entity web service layer plugin or the common entity web service if no custom one exists.
 /// </summary>
 /// <returns>The custom or common web service.</returns>
 public TWebService LoadPluginOrCommon()
 {
     if (PluginCollection != null && PluginCollection.Any())
     {
         if (Plugins == null || !Plugins.Any())
         {
             throw new Exception("Custom entity web service plugin found but failed to load.");
         }
         return(Plugins[0]);
     }
     return(new TWebService());
 }