public SmartInkPackage(SmartInkManifest manifest, IPackageStorageProvider provider, int imageSize = 0) { _provider = provider ?? throw new ArgumentNullException($"{nameof(provider)} cannot be null"); _manifest = manifest ?? throw new ArgumentNullException($"{nameof(manifest)} cannot be null"); if (imageSize != 0 && imageSize >= INK_IMAGE_SIZE) { INK_IMAGE_SIZE = imageSize; } }
public SmartInkPackage(string name, IPackageStorageProvider provider, int imageSize = 0) { if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentNullException($"{nameof(name)} cannot be null or empty."); } _provider = provider ?? throw new ArgumentNullException($"{nameof(provider)} cannot be null"); _manifest = new SmartInkManifest() { Name = name }; if (imageSize != 0 && imageSize >= INK_IMAGE_SIZE) { INK_IMAGE_SIZE = imageSize; } }
public TestPackageStorageProviderFactory(IPackageStorageProvider provider) { _provider = provider; }
public SmartInkMediaPackage(SmartInkManifest manifest, IPackageStorageProvider provider, int imagesize = 0) : base(manifest, provider, imagesize) { }
public SmartInkMediaPackage(string name, IPackageStorageProvider provider, int imagesize = 0) : base(name, provider, imagesize) { }