internal ICSConnection(INetSharingManager nsManager, INetConnection netConnection) { if (nsManager == null) { throw new ArgumentNullException("nsManager"); } if (netConnection == null) { throw new ArgumentNullException("netConnection"); } this._netConnectionProperties = nsManager.NetConnectionProps[netConnection]; this._netSharingConfiguration = nsManager.INetSharingConfigurationForINetConnection[netConnection]; }
internal ICSConnection(INetSharingManager nsManager, INetConnection netConnection) { if (nsManager == null) { throw new ArgumentNullException("nsManager"); } if (netConnection == null) { throw new ArgumentNullException("netConnection"); } this._netConnectionProperties = nsManager.NetConnectionProps[netConnection]; this._netSharingConfiguration = nsManager.INetSharingConfigurationForINetConnection[netConnection]; }
internal ICSManager() { _netSharingManager = new NetSharingManager(); if (!_netSharingManager.SharingInstalled) { string message; message = Environment.OSVersion.Version.Major == 5 ? "The operating system doesn't support connection sharing" : "ICS requires elevated privilege"; Logger.Error(".ctor: {0}", message); throw new ICSException(message); } _icsService = new ServiceController("SharedAccess"); }
internal ICSManager() { _netSharingManager = new NetSharingManager(); if (!_netSharingManager.SharingInstalled) { string message; message = Environment.OSVersion.Version.Major == 5 ? "The operating system doesn't support connection sharing" : "ICS requires elevated privilege"; Logger.Error(".ctor: {0}", message); throw new ICSException(message); } _icsService = new ServiceController("SharedAccess"); }
public IcsConnection(INetSharingManager pIcsMgr, INetConnection pNetConnection) { this.INetConnection = pNetConnection; this._NSManager = pIcsMgr; }
public IcsConnection(INetSharingManager pIcsMgr, INetConnection pNetConnection) { this.INetConnection = pNetConnection; this._NSManager = pIcsMgr; }
public void Init() { this._NSManager = new NetSharingManagerClass(); }
public void Init() { this._NSManager = new NetSharingManagerClass(); }
public void Init() { _NSManager = new NetSharingManager(); }