public async Task <bool> OnInboundMessage(IRemoteClient remoteClient, string request) { if (_remoteClientAssetFsLayer == null) { return(false); } var inbound = await remoteClient.ObtainInboundReaderWriter().ConfigureAwait(false); switch (request) { case "updated-asset": { var asset = ReadRemoteAssetFsFileFromStream(remoteClient, inbound.Reader); _remoteClientAssetFsLayer.SetCachedFile(asset.Name, asset); break; } case "deleted-asset": { var assetName = inbound.Reader.ReadString(); _remoteClientAssetFsLayer.RemoveCachedFile(assetName); break; } } return(false); }