public static CommentProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(CommentSubsiteProvider.CreateInstance());
     }
     return(CommentMasterProvider.CreateInstance());
 }
Пример #2
0
        public static CommentProvider Instance()
        {
            CommentProvider result;

            if (HiContext.Current.SiteSettings.IsDistributorSettings)
            {
                result = CommentSubsiteProvider.CreateInstance();
            }
            else
            {
                result = CommentMasterProvider.CreateInstance();
            }
            return(result);
        }
Пример #3
0
 static CommentSubsiteProvider()
 {
     CommentSubsiteProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.DistributionData.CommentData,Hidistro.SaleSystem.DistributionData") as CommentSubsiteProvider);
 }