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

ImageHash() public static method

public static ImageHash ( this deviceModel ) : string
deviceModel this
return string
        public static string ImageHash(this DeviceModel deviceModel)
        {
            var deviceModelImagePath = deviceModel.ImageFilePath();

            if (File.Exists(deviceModelImagePath))
                return File.GetLastWriteTimeUtc(deviceModelImagePath).ToBinary().ToString();
            else
                return "-1";
        }
    }