Esempio n. 1
0
 public static PSMethod CreatePSMethod(string name, DotNetAdapter dotNetInstanceAdapter, object baseObject, MethodCacheEntry method, bool isSpecial, bool isHidden)
 {
     return(new PSMethod(
                name,
                dotNetInstanceAdapter,
                baseObject,
                method,
                isSpecial,
                isHidden));
 }
Esempio n. 2
0
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        /// <typeparam name="T">Type of the action</typeparam>
        /// <param name="entries">The entries.</param>
        /// <returns></returns>
        internal static ActionContext New <T>(params ActionContextEntry[] entries)
        {
            var actionName = MethodCacheEntry.GetActionName(typeof(T));

            return(new ActionContext(actionName).AddRange(entries));
        }
Esempio n. 3
0
 public static bool GetIsHidden(this MethodCacheEntry self)
 {
     return(false);
 }