Beispiel #1
0
        public object SetPropertyDynamicParameters(string path, PSObject propertyValue)
        {
            DynamicParameterBuilder dynamic = new DynamicParameterBuilder();

            dynamic.AddSwitchParam("Add");
            dynamic.AddSwitchParam("Raw");
            dynamic.AddSwitchParam("Remove");

            return(dynamic.GetDictionary());
        }
Beispiel #2
0
        public object GetPropertyDynamicParameters(string path, Collection <string> providerSpecificPickList)
        {
            DynamicParameterBuilder dynamic = new DynamicParameterBuilder();

            dynamic.AddSwitchParam("Raw");

            return(dynamic.GetDictionary());
        }
Beispiel #3
0
        public AssemblyCacheProvider()
        {
            var dynamic = new DynamicParameterBuilder();
            dynamic.AddParam<Version>("Version", false, null);
            dynamic.AddParam<ProcessorArchitecture>("ProcessorArchitecture", false, null);
            dynamic.AddParam<CultureInfo>("CultureInfo", false, null);
            dynamic.AddSwitchParam("Refresh");

            _sharedDynamicParameters = dynamic.GetDictionary();

            _iiDynamicParameters = GetInvokeItemDynamicParameters();
        }
        public AssemblyCacheProvider()
        {
            var dynamic = new DynamicParameterBuilder();

            dynamic.AddParam <Version>("Version", false, null);
            dynamic.AddParam <ProcessorArchitecture>("ProcessorArchitecture", false, null);
            dynamic.AddParam <CultureInfo>("CultureInfo", false, null);
            dynamic.AddSwitchParam("Refresh");

            _sharedDynamicParameters = dynamic.GetDictionary();

            _iiDynamicParameters = GetInvokeItemDynamicParameters();
        }
        public object SetPropertyDynamicParameters(string path, PSObject propertyValue)
        {
            DynamicParameterBuilder dynamic = new DynamicParameterBuilder();
            dynamic.AddSwitchParam("Add");
            dynamic.AddSwitchParam("Raw");
            dynamic.AddSwitchParam("Remove");

            return dynamic.GetDictionary();
        }
        public object GetPropertyDynamicParameters(string path, Collection<string> providerSpecificPickList)
        {
            DynamicParameterBuilder dynamic = new DynamicParameterBuilder();
            dynamic.AddSwitchParam("Raw");

            return dynamic.GetDictionary();
        }