private IFtpWebRequest CreateRequest(Uri uri, string method) { Log.LogMessage("{0}: {1}", method, uri); IFtpWebRequestCreator creator = _requestCreator; if (creator == null) { creator = this; } return(creator.Create(uri, method)); }
/// <summary> /// Initializes a new instance that will inject the specified dependency. /// </summary> /// <param name="requestCreator"></param> public FtpUpload(IFtpWebRequestCreator requestCreator) : this() { _requestCreator = requestCreator; }
/// <summary> /// Initializes a new instance that will inject the specified dependency. /// </summary> /// <param name="requestCreator"></param> public FtpUpload(IFtpWebRequestCreator requestCreator) : this() { _requestCreator = requestCreator; }