forked from scriptcs-contrib/scriptcs-webapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWriteToStreamArgs.cs
More file actions
34 lines (31 loc) · 1.11 KB
/
Copy pathWriteToStreamArgs.cs
File metadata and controls
34 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading;
namespace ScriptCs.WebApi
{
public class WriteToStreamArgs
{
public WriteToStreamArgs(Type type, object instance, Stream stream, HttpContent content, TransportContext context, CancellationToken token)
{
Guard.AgainstNullArgument("type", type);
Guard.AgainstNullArgument("instance", instance);
Guard.AgainstNullArgument("stream", stream);
Guard.AgainstNullArgument("content", content);
Guard.AgainstNullArgument("context", context);
Type = type;
Instance = instance;
Stream = stream;
Content = content;
Context = context;
Token = token;
}
public Type Type { get; private set; }
public object Instance { get; private set; }
public Stream Stream { get; private set; }
public HttpContent Content { get; private set; }
public TransportContext Context { get; private set; }
public CancellationToken Token { get; private set; }
}
}