当前位置:网站首页>Stream as a return value in WCF - who disposes of it- Stream as a return value in WCF - who disposes it?
Stream as a return value in WCF - who disposes of it- Stream as a return value in WCF - who disposes it?
2022-06-12 10:36:00 【javail】
problem :
Let's say I have the following WCF implementation: Suppose I have the following WCF Realization :
public Stream Download(string path){ FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read); return stream;}Who's responsible for disposing the returned value? Who is responsible for processing the returned value ?After all, a network failure might occur, hence the consumer might not be able to dispose it. After all , Possible network failure , So consumers may not be able to dispose of it .
Solution :
Reference resources : https://stackoom.com/en/question/RCbg边栏推荐
- Tp6+memcached configuration
- Vscode code debugging skills
- golang中的定时器
- 2022 Taobao 618 Super Cat Games introduction 618 super cat games playing skills
- Dynamic proxy
- 2022京东618预售定金怎么退?京东618定金能退吗?
- [MySQL] index invalidation and index optimization
- Win10 professional edition user name modification
- Malicious code analysis practice - lab03-02 DLL analysis
- One test for twoorthree years, recording some thoughts on test exchange experience
猜你喜欢

【机器学习】基于鸢尾花(iris)数据集的逻辑回归分类实践

A snare - Cookie spoofing

Solution to invalid small program scroll into view

Malicious code analysis practice -- using apatedns and inetsim to simulate network environment

基于C#的安全聊天工具设计

Oculus quest generation opens Bluetooth connection

MySQL user and permission management, role management

Bug easily ignored by recursion
![[experiment] MySQL master-slave replication and read-write separation](/img/aa/7d0799013ff749cacf44ba3b773dff.png)
[experiment] MySQL master-slave replication and read-write separation

Machine learning is not something you can use if you want to use it
随机推荐
Download Notepad++
ID obfuscation
Win10 professional edition user name modification
Class. Forname connection MySQL driver keeps throwing classnotfoundexception exception solution
PHP string encryption and decryption
验收标准到底是不是测试用例?
JS scale down the width and height of the picture
Common configuration commands for Cisco network device security management
Malicious code analysis practice - lab03-03 Exe basic dynamic analysis
Propagation of transactions
Introduction to encoding formats (ASCII, Unicode and UTF-8)
PHP: seven cattle cloud upload file
pycharm 查看opencv当前的版本
2022 JD 618 Comment rembourser le dépôt de pré - vente? Le dépôt JD 618 peut - il être remboursé?
Cookie object
93. 获得内网的所有IP地址
Machine learning is not something you can use if you want to use it
properties中文乱码
conda 安装tensorflow 测试tensorflow
性能指标的信仰危机
