Пример #1
0
 public static void RegisterTenantViewAssemblyPart(ApplicationPartManager manager, [WebPartConfig("ContextSettings")] SecurityContextOptions options)
 {
     if (!string.IsNullOrEmpty(options?.ContextType))
     {
         var dic = new Dictionary <string, object>();
         var t   = (Type)ExpressionParser.Parse(options.ContextType, dic);
         manager.EnableItvTenantViews(t);
     }
     else
     {
         throw new InvalidOperationException("Unable to register Views without a Context-Type");
     }
 }