protected SharingObject(Context context, Stream stream, NotifyPropertySharingViewer sharingViewer) { this.CancellationToken = this.cancellation.Token; this.viewer = sharingViewer ?? throw new ArgumentNullException(nameof(sharingViewer)); this.Settings = context.Settings; this.Generator = context.Generator; this.dispatcher = context.Dispatcher; this.Stream = stream ?? throw new ArgumentNullException(nameof(stream)); }
protected FileObject(Context context, Stream stream, NotifyPropertySharingViewer viewer) : base(context, stream, viewer) { }