static WSManClientSessionTransportManager()
 {
     WSManClientSessionTransportManager.wsManApiStaticData     = new WSManClientSessionTransportManager.WSManAPIStaticData();
     WSManClientSessionTransportManager.sessionCreateCallback  = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnCreateSessionCompleted));
     WSManClientSessionTransportManager.sessionCloseCallback   = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnCloseSessionCompleted));
     WSManClientSessionTransportManager.sessionReceiveCallback = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnRemoteSessionDataReceived));
     WSManClientSessionTransportManager.sessionSendCallback    = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnRemoteSessionSendCompleted));
 }
 static WSManClientCommandTransportManager()
 {
     WSManClientCommandTransportManager.cmdCreateCallback  = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnCreateCmdCompleted));
     WSManClientCommandTransportManager.cmdCloseCallback   = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnCloseCmdCompleted));
     WSManClientCommandTransportManager.cmdReceiveCallback = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdDataReceived));
     WSManClientCommandTransportManager.cmdSendCallback    = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdSendCompleted));
     WSManClientCommandTransportManager.cmdSignalCallback  = new WSManNativeApi.WSManShellAsyncCallback(new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdSignalCompleted));
 }
 static WSManClientCommandTransportManager()
 {
     WSManNativeApi.WSManShellCompletionFunction callback = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnCreateCmdCompleted);
     cmdCreateCallback = new WSManNativeApi.WSManShellAsyncCallback(callback);
     WSManNativeApi.WSManShellCompletionFunction function2 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnCloseCmdCompleted);
     cmdCloseCallback = new WSManNativeApi.WSManShellAsyncCallback(function2);
     WSManNativeApi.WSManShellCompletionFunction function3 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdDataReceived);
     cmdReceiveCallback = new WSManNativeApi.WSManShellAsyncCallback(function3);
     WSManNativeApi.WSManShellCompletionFunction function4 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdSendCompleted);
     cmdSendCallback = new WSManNativeApi.WSManShellAsyncCallback(function4);
     WSManNativeApi.WSManShellCompletionFunction function5 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdSignalCompleted);
     cmdSignalCallback = new WSManNativeApi.WSManShellAsyncCallback(function5);
     WSManNativeApi.WSManShellCompletionFunction function6 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnReconnectCmdCompleted);
     cmdReconnectCallback = new WSManNativeApi.WSManShellAsyncCallback(function6);
     WSManNativeApi.WSManShellCompletionFunction function7 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnConnectCmdCompleted);
     cmdConnectCallback = new WSManNativeApi.WSManShellAsyncCallback(function7);
 }
Ejemplo n.º 4
0
 static WSManClientCommandTransportManager()
 {
     WSManNativeApi.WSManShellCompletionFunction callback = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnCreateCmdCompleted);
     cmdCreateCallback = new WSManNativeApi.WSManShellAsyncCallback(callback);
     WSManNativeApi.WSManShellCompletionFunction function2 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnCloseCmdCompleted);
     cmdCloseCallback = new WSManNativeApi.WSManShellAsyncCallback(function2);
     WSManNativeApi.WSManShellCompletionFunction function3 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdDataReceived);
     cmdReceiveCallback = new WSManNativeApi.WSManShellAsyncCallback(function3);
     WSManNativeApi.WSManShellCompletionFunction function4 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdSendCompleted);
     cmdSendCallback = new WSManNativeApi.WSManShellAsyncCallback(function4);
     WSManNativeApi.WSManShellCompletionFunction function5 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnRemoteCmdSignalCompleted);
     cmdSignalCallback = new WSManNativeApi.WSManShellAsyncCallback(function5);
     WSManNativeApi.WSManShellCompletionFunction function6 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnReconnectCmdCompleted);
     cmdReconnectCallback = new WSManNativeApi.WSManShellAsyncCallback(function6);
     WSManNativeApi.WSManShellCompletionFunction function7 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientCommandTransportManager.OnConnectCmdCompleted);
     cmdConnectCallback = new WSManNativeApi.WSManShellAsyncCallback(function7);
 }
 static WSManClientSessionTransportManager()
 {
     WSManNativeApi.WSManShellCompletionFunction callback = new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnCreateSessionCallback);
     sessionCreateCallback = new WSManNativeApi.WSManShellAsyncCallback(callback);
     WSManNativeApi.WSManShellCompletionFunction function2 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnCloseSessionCompleted);
     sessionCloseCallback = new WSManNativeApi.WSManShellAsyncCallback(function2);
     WSManNativeApi.WSManShellCompletionFunction function3 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnRemoteSessionDataReceived);
     sessionReceiveCallback = new WSManNativeApi.WSManShellAsyncCallback(function3);
     WSManNativeApi.WSManShellCompletionFunction function4 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnRemoteSessionSendCompleted);
     sessionSendCallback = new WSManNativeApi.WSManShellAsyncCallback(function4);
     WSManNativeApi.WSManShellCompletionFunction function5 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnRemoteSessionDisconnectCompleted);
     sessionDisconnectCallback = new WSManNativeApi.WSManShellAsyncCallback(function5);
     WSManNativeApi.WSManShellCompletionFunction function6 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnRemoteSessionReconnectCompleted);
     sessionReconnectCallback = new WSManNativeApi.WSManShellAsyncCallback(function6);
     WSManNativeApi.WSManShellCompletionFunction function7 = new WSManNativeApi.WSManShellCompletionFunction(WSManClientSessionTransportManager.OnRemoteSessionConnectCallback);
     sessionConnectCallback = new WSManNativeApi.WSManShellAsyncCallback(function7);
 }
Ejemplo n.º 6
0
        /// <summary>
        /// Static constructor to initialize WSMan Client stack.
        /// </summary>
        static WSManClientSessionTransportManager()
        {
            // Initialize callback delegates
            WSManNativeApi.WSManShellCompletionFunction createDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnCreateSessionCallback);
            s_sessionCreateCallback = new WSManNativeApi.WSManShellAsyncCallback(createDelegate);

            WSManNativeApi.WSManShellCompletionFunction closeDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnCloseSessionCompleted);
            s_sessionCloseCallback = new WSManNativeApi.WSManShellAsyncCallback(closeDelegate);

            WSManNativeApi.WSManShellCompletionFunction receiveDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnRemoteSessionDataReceived);
            s_sessionReceiveCallback = new WSManNativeApi.WSManShellAsyncCallback(receiveDelegate);

            WSManNativeApi.WSManShellCompletionFunction sendDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnRemoteSessionSendCompleted);
            s_sessionSendCallback = new WSManNativeApi.WSManShellAsyncCallback(sendDelegate);

            WSManNativeApi.WSManShellCompletionFunction disconnectDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnRemoteSessionDisconnectCompleted);
            s_sessionDisconnectCallback = new WSManNativeApi.WSManShellAsyncCallback(disconnectDelegate);

            WSManNativeApi.WSManShellCompletionFunction reconnectDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnRemoteSessionReconnectCompleted);
            s_sessionReconnectCallback = new WSManNativeApi.WSManShellAsyncCallback(reconnectDelegate);

            WSManNativeApi.WSManShellCompletionFunction connectDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnRemoteSessionConnectCallback);
            s_sessionConnectCallback = new WSManNativeApi.WSManShellAsyncCallback(connectDelegate);
        }
Ejemplo n.º 7
0
        static WSManClientCommandTransportManager()
        {
            // Initialize callback delegates
            WSManNativeApi.WSManShellCompletionFunction createDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnCreateCmdCompleted);
            s_cmdCreateCallback = new WSManNativeApi.WSManShellAsyncCallback(createDelegate);

            WSManNativeApi.WSManShellCompletionFunction closeDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnCloseCmdCompleted);
            s_cmdCloseCallback = new WSManNativeApi.WSManShellAsyncCallback(closeDelegate);

            WSManNativeApi.WSManShellCompletionFunction receiveDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnRemoteCmdDataReceived);
            s_cmdReceiveCallback = new WSManNativeApi.WSManShellAsyncCallback(receiveDelegate);

            WSManNativeApi.WSManShellCompletionFunction sendDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnRemoteCmdSendCompleted);
            s_cmdSendCallback = new WSManNativeApi.WSManShellAsyncCallback(sendDelegate);

            WSManNativeApi.WSManShellCompletionFunction signalDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnRemoteCmdSignalCompleted);
            s_cmdSignalCallback = new WSManNativeApi.WSManShellAsyncCallback(signalDelegate);

            WSManNativeApi.WSManShellCompletionFunction reconnectDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnReconnectCmdCompleted);
            s_cmdReconnectCallback = new WSManNativeApi.WSManShellAsyncCallback(reconnectDelegate);

            WSManNativeApi.WSManShellCompletionFunction connectDelegate =
                new WSManNativeApi.WSManShellCompletionFunction(OnConnectCmdCompleted);
            s_cmdConnectCallback = new WSManNativeApi.WSManShellAsyncCallback(connectDelegate);
        }