/// <summary> /// Create <see cref="CimSessionProxy"/> object, and /// add the proxy into cache. /// </summary> /// <param name="computerName"></param> /// <param name="cimInstance"></param> /// <param name="passThru"></param> protected CimSessionProxy CreateCimSessionProxy(string computerName, CimInstance cimInstance, bool passThru) { CimSessionProxy proxy = new CimSessionProxySetCimInstance(computerName, cimInstance, passThru); this.SubscribeEventAndAddProxytoCache(proxy); return(proxy); }
/// <summary> /// Create <see cref="CimSessionProxy"/> object. /// </summary> /// <param name="session"></param> protected CimSessionProxy CreateCimSessionProxy(CimSession session, bool passThru) { CimSessionProxy proxy = new CimSessionProxySetCimInstance(session, passThru); this.SubscribeEventAndAddProxytoCache(proxy); return(proxy); }