Disco.Services.DeviceDataStoreExtensions.Image C# (CSharp) Method

Image() public static method

public static Image ( this deviceModel ) : FileStream
deviceModel this
return System.IO.FileStream
        public static FileStream Image(this DeviceModel deviceModel)
        {
            var deviceModelImagePath = deviceModel.ImageFilePath();

            if (File.Exists(deviceModelImagePath))
                return new FileStream(deviceModelImagePath, FileMode.Open, FileAccess.Read, FileShare.Read);
            else
                return null;
        }