C# Class Disco.Services.AttachmentActionExtensions

Exibir arquivo Open project: garysharp/Disco

Public Methods

Method Description
CanDelete ( this da ) : bool
CreateAttachment ( this Device, DiscoDataContext Database, User CreatorUser, string Filename, string MimeType, string Comments, Stream Content, DocumentTemplate DocumentTemplate = null, Image PdfThumbnail = null ) : DeviceAttachment
CreateAttachment ( this Job, DiscoDataContext Database, User CreatorUser, string Filename, string MimeType, string Comments, Stream Content, DocumentTemplate DocumentTemplate = null, Image PdfThumbnail = null ) : JobAttachment
CreateAttachment ( this User, DiscoDataContext Database, User CreatorUser, string Filename, string MimeType, string Comments, Stream Content, DocumentTemplate DocumentTemplate = null, Image PdfThumbnail = null ) : UserAttachment
GenerateThumbnail ( Stream Source, string SourceMimeType, Image &Thumbnail ) : bool
GenerateThumbnail ( this attachment, DiscoDataContext Database ) : string
GenerateThumbnail ( this attachment, DiscoDataContext Database, Stream AttachmentStream ) : string
OnDelete ( this da, DiscoDataContext Database ) : void

Method Details

CanDelete() public static method

public static CanDelete ( this da ) : bool
da this
return bool

CreateAttachment() public static method

public static CreateAttachment ( this Device, DiscoDataContext Database, User CreatorUser, string Filename, string MimeType, string Comments, Stream Content, DocumentTemplate DocumentTemplate = null, Image PdfThumbnail = null ) : DeviceAttachment
Device this
Database Disco.Data.Repository.DiscoDataContext
CreatorUser Disco.Models.Repository.User
Filename string
MimeType string
Comments string
Content Stream
DocumentTemplate Disco.Models.Repository.DocumentTemplate
PdfThumbnail Image
return Disco.Models.Repository.DeviceAttachment

CreateAttachment() public static method

public static CreateAttachment ( this Job, DiscoDataContext Database, User CreatorUser, string Filename, string MimeType, string Comments, Stream Content, DocumentTemplate DocumentTemplate = null, Image PdfThumbnail = null ) : JobAttachment
Job this
Database Disco.Data.Repository.DiscoDataContext
CreatorUser Disco.Models.Repository.User
Filename string
MimeType string
Comments string
Content Stream
DocumentTemplate Disco.Models.Repository.DocumentTemplate
PdfThumbnail Image
return Disco.Models.Repository.JobAttachment

CreateAttachment() public static method

public static CreateAttachment ( this User, DiscoDataContext Database, User CreatorUser, string Filename, string MimeType, string Comments, Stream Content, DocumentTemplate DocumentTemplate = null, Image PdfThumbnail = null ) : UserAttachment
User this
Database Disco.Data.Repository.DiscoDataContext
CreatorUser Disco.Models.Repository.User
Filename string
MimeType string
Comments string
Content Stream
DocumentTemplate Disco.Models.Repository.DocumentTemplate
PdfThumbnail Image
return Disco.Models.Repository.UserAttachment

GenerateThumbnail() public static method

public static GenerateThumbnail ( Stream Source, string SourceMimeType, Image &Thumbnail ) : bool
Source Stream
SourceMimeType string
Thumbnail Image
return bool

GenerateThumbnail() public static method

public static GenerateThumbnail ( this attachment, DiscoDataContext Database ) : string
attachment this
Database Disco.Data.Repository.DiscoDataContext
return string

GenerateThumbnail() public static method

public static GenerateThumbnail ( this attachment, DiscoDataContext Database, Stream AttachmentStream ) : string
attachment this
Database Disco.Data.Repository.DiscoDataContext
AttachmentStream Stream
return string

OnDelete() public static method

public static OnDelete ( this da, DiscoDataContext Database ) : void
da this
Database Disco.Data.Repository.DiscoDataContext
return void