Exemplo n.º 1
0
        public ResourceHelper(IAdminHost target, Assembly source)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            this.Source    = source;
            this.Namespace = source.GetName().Name;
            this.Target    = target;
        }
Exemplo n.º 2
0
 public ResourceHelper(IAdminHost target, object plugin)
     : this(target, plugin.GetType())
 {
 }
Exemplo n.º 3
0
 public ResourceHelper(IAdminHost target, Type pluginType)
     : this(target, pluginType.GetTypeInfo().Assembly)
 {
     this.Namespace = pluginType.Namespace;
 }