protected override void Dispose(bool isDisposing) { if (isDisposing) { GeneralServiceManager.Remove(_generalServiceDetail.ClientId); } }
protected override void Dispose(bool isDisposing) { if (isDisposing) { NetworkChange.NetworkAddressChanged -= LocalInterfaceCacheHandler; GeneralServiceManager.Remove(_generalServiceDetail.ClientId); } }
public IGeneralService() { _generalServiceDetail = new GeneralServiceDetail { ClientId = GeneralServiceManager.Count, IsAnyInternetRequestAccepted = true // NOTE: Why not accept any internet request? }; GeneralServiceManager.Add(_generalServiceDetail); }
// IsAnyInternetRequestAccepted(buffer<nn::nifm::ClientId, 0x19, 4>) -> bool public ResultCode IsAnyInternetRequestAccepted(ServiceCtx context) { ulong position = context.Request.PtrBuff[0].Position; ulong size = context.Request.PtrBuff[0].Size; int clientId = context.Memory.Read <int>(position); context.ResponseData.Write(GeneralServiceManager.Get(clientId).IsAnyInternetRequestAccepted); return(ResultCode.Success); }
public IGeneralService() { _generalServiceDetail = new GeneralServiceDetail { ClientId = GeneralServiceManager.Count, IsAnyInternetRequestAccepted = true // NOTE: Why not accept any internet request? }; NetworkChange.NetworkAddressChanged += new NetworkAddressChangedEventHandler(LocalInterfaceCacheHandler); GeneralServiceManager.Add(_generalServiceDetail); }
public void Dispose() { GeneralServiceManager.Remove(_generalServiceDetail.ClientId); }