File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Common/Storage/Commands.Storage.Test/File Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
+ using Microsoft . WindowsAzure . Commands . Utilities . Common ;
15
16
using System ;
16
17
using System . Collections . Generic ;
17
18
using System . Linq ;
@@ -26,6 +27,8 @@ internal static class PSCmdletReflectionHelper
26
27
{
27
28
private static readonly Type psCmdletType = typeof ( PSCmdlet ) ;
28
29
30
+ private static readonly Type azurePsCmdletType = typeof ( AzurePSCmdlet ) ;
31
+
29
32
private static readonly FieldInfo parameterSetFieldInfo = typeof ( System . Management . Automation . Cmdlet ) . GetField ( "_parameterSetName" , BindingFlags . Instance | BindingFlags . NonPublic ) ;
30
33
31
34
private static readonly FieldInfo sessionStateFieldInfo = typeof ( InternalCommand ) . GetField ( "state" , BindingFlags . Instance | BindingFlags . NonPublic ) ;
@@ -40,7 +43,7 @@ internal static class PSCmdletReflectionHelper
40
43
41
44
private static readonly MethodInfo endProcessingMethodInfo = psCmdletType . GetMethod ( "EndProcessing" , BindingFlags . NonPublic | BindingFlags . Instance ) ;
42
45
43
- private static readonly MethodInfo processRecordMethodInfo = psCmdletType . GetMethod ( "ProcessRecord " , BindingFlags . NonPublic | BindingFlags . Instance ) ;
46
+ private static readonly MethodInfo processRecordMethodInfo = azurePsCmdletType . GetMethod ( "ExecuteCmdlet " , BindingFlags . Public | BindingFlags . Instance ) ;
44
47
45
48
private static readonly object [ ] emptyParameters = new object [ 0 ] ;
46
49
You can’t perform that action at this time.
0 commit comments