|
readonly string | file |
|
readonly string | path |
|
Definition at line 29 of file FtpStreamDestination.cs.
Ntp.Analyzer.Export.FtpStreamDestination.FtpStreamDestination |
( |
string |
path, |
|
|
string |
file |
|
) |
| |
|
inline |
override void Ntp.Analyzer.Export.FtpStreamDestination.Test |
( |
| ) |
|
|
inlinevirtual |
override void Ntp.Analyzer.Export.FtpStreamDestination.Write |
( |
Stream |
stream, |
|
|
LogBase |
log |
|
) |
| |
|
inlinevirtual |
Implements Ntp.Analyzer.Export.StreamDestination.
Definition at line 65 of file FtpStreamDestination.cs.
References Ntp.Common.Log.Console, e, Ntp.Common.Log.File, and Ntp.Common.Log.LogBase.WriteLine().
69 if (
File.Exists(absFile))
76 var request = (FtpWebRequest) WebRequest.Create(
"ftp://172.20.83.1/test.png");
77 request.Method = WebRequestMethods.Ftp.UploadFile;
78 request.Credentials =
new NetworkCredential(
"ntapf",
"ntpafps");
79 request.UsePassive =
false;
81 request.ContentLength = stream.Length;
82 Stream requestStream = request.GetRequestStream();
83 stream.CopyTo(requestStream);
84 requestStream.Close();
86 var response = (FtpWebResponse) request.GetResponse();
88 Console.WriteLine($
"Upload File Complete, status {response.StatusDescription}");
abstract void WriteLine(string text, Severity severity)
override string AbsoluteLocation
override string Ntp.Analyzer.Export.FtpStreamDestination.AbsoluteLocation => path + file |
readonly string Ntp.Analyzer.Export.FtpStreamDestination.file |
|
private |
override string Ntp.Analyzer.Export.FtpStreamDestination.Link => string.Empty |
override string Ntp.Analyzer.Export.FtpStreamDestination.Location => file |
readonly string Ntp.Analyzer.Export.FtpStreamDestination.path |
|
private |
override string Ntp.Analyzer.Export.FtpStreamDestination.Value => file |
The documentation for this class was generated from the following file: