Windows Network File Shares
Steeltoe's WindowsNetworkFileShare
class provides a simplified experience for interacting with SMB file shares by making P/Invoke calls to underlying Windows APIs, specifically to mpr.dll
. For more background on SMB, see the Microsoft SMB Protocol documentation.
Network shares are not the most cloud-native way to deal with files. For new development, consider exploring message queues, caches, blob stores, and NoSQL stores. The alternatives offer greater resiliency and decoupling from backing services. That said, sometimes the alternatives are not viable. For .NET applications deployed to Microsoft Windows Servers, Steeltoe provides a stepping stone towards cloud-native in the form of the WindowsNetworkFileShare
. For applications deployed to Linux hosts on the Tanzu Platform, volume services are available.