Esempio n. 1
0
 internal void Secure(IWbemCallResult callResult)
 {
     if (null != scope)
     {
         securityHelper.BlessIWbemCallResult(
             callResult,
             scope.Options.Username,
             scope.Options.GetPassword(),
             scope.Options.Authority,
             (int)scope.Options.Impersonation,
             (int)scope.Options.Authentication);
     }
 }
Esempio n. 2
0
        internal void Secure(IWbemCallResult wbemCallResult)
        {
            if (null == securityHelper)
            {
                securityHelper = (IWmiSec) new WmiSec();
            }

            securityHelper.BlessIWbemCallResult(
                ref wbemCallResult,
                options.Username,
                options.GetPassword(),
                options.Authority,
                (int)options.Impersonation,
                (int)options.Authentication);
        }