Exemple #1
0
        internal void OnRequestedAttention(object sender, RequestedAttentionArgs e)
        {
            VmProxy vmProxy;

            ProxyBuilder.Create(out vmProxy, DbusEndpointUriComponents.Create("com.citrix.xenclient.xenmgr", e.ObjPath.ToString()));
            int slot = vmProxy.ProxyInterface.slot;

            if (slot >= 0 && slot <= 9)
            {
                OnAlert("com.citrix.xenclient.xenmgr.host.guestreq", "requested_attention:switchable", new string[] { vmProxy.ProxyInterface.name, slot.ToString() });
            }
            else
            {
                OnAlert("com.citrix.xenclient.xenmgr.host.guestreq", "requested_attention", new string[] { vmProxy.ProxyInterface.name, slot.ToString() });
            }
        }
        internal void OnRequestedAttention(object sender, RequestedAttentionArgs e)
        {
            VmProxy vmProxy;
            ProxyBuilder.Create(out vmProxy, DbusEndpointUriComponents.Create("com.citrix.xenclient.xenmgr", e.ObjPath.ToString()));
            int slot = vmProxy.ProxyInterface.slot;

            if (slot >= 0 && slot <= 9)
            {
                OnAlert("com.citrix.xenclient.xenmgr.host.guestreq", "requested_attention:switchable", new string[] { vmProxy.ProxyInterface.name, slot.ToString() });
            }
            else
            {
                OnAlert("com.citrix.xenclient.xenmgr.host.guestreq", "requested_attention", new string[] { vmProxy.ProxyInterface.name, slot.ToString() });
            }
        }