C# Класс Disco.Services.AttachmentActionExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

CanDelete() публичный статический Метод

public static CanDelete ( this da ) : bool
da this
Результат bool

CreateAttachment() публичный статический Метод

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
Результат Disco.Models.Repository.DeviceAttachment

CreateAttachment() публичный статический Метод

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
Результат Disco.Models.Repository.JobAttachment

CreateAttachment() публичный статический Метод

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
Результат Disco.Models.Repository.UserAttachment

GenerateThumbnail() публичный статический Метод

public static GenerateThumbnail ( Stream Source, string SourceMimeType, Image &Thumbnail ) : bool
Source Stream
SourceMimeType string
Thumbnail Image
Результат bool

GenerateThumbnail() публичный статический Метод

public static GenerateThumbnail ( this attachment, DiscoDataContext Database ) : string
attachment this
Database Disco.Data.Repository.DiscoDataContext
Результат string

GenerateThumbnail() публичный статический Метод

public static GenerateThumbnail ( this attachment, DiscoDataContext Database, Stream AttachmentStream ) : string
attachment this
Database Disco.Data.Repository.DiscoDataContext
AttachmentStream Stream
Результат string

OnDelete() публичный статический Метод

public static OnDelete ( this da, DiscoDataContext Database ) : void
da this
Database Disco.Data.Repository.DiscoDataContext
Результат void