Skip to content

Commit 3007cf9

Browse files
committed
Rename OutputFactory to IOutputFactory
1 parent 09914f0 commit 3007cf9

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

libsignal-service-dotnet/push/ProfileAvatarData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public class ProfileAvatarData
1212
public Stream InputData { get; }
1313
public long DataLength { get; }
1414
public string ContentType { get; }
15-
public OutputStreamFactory OutputStreamFactory { get; }
15+
public IOutputStreamFactory OutputStreamFactory { get; }
1616

17-
public ProfileAvatarData(Stream inputData, long dataLength, string contentType, OutputStreamFactory outputStreamFactory)
17+
public ProfileAvatarData(Stream inputData, long dataLength, string contentType, IOutputStreamFactory outputStreamFactory)
1818
{
1919
InputData = inputData;
2020
DataLength = dataLength;

libsignal-service-dotnet/push/PushAttachmentData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ public class PushAttachmentData
1111
public string ContentType { get; }
1212
public Stream Data { get; }
1313
public long DataSize { get; }
14-
public OutputStreamFactory OutputFactory { get; }
14+
public IOutputStreamFactory OutputFactory { get; }
1515
public IProgressListener Listener { get; }
1616

17-
public PushAttachmentData(String contentType, Stream data, long dataSize, OutputStreamFactory outputStreamFactory, IProgressListener listener)
17+
public PushAttachmentData(String contentType, Stream data, long dataSize, IOutputStreamFactory outputStreamFactory, IProgressListener listener)
1818
{
1919
ContentType = contentType;
2020
Data = data;

libsignal-service-dotnet/push/PushServiceSocket.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ private void DownloadFromCdn(Stream destination, string path, int maxSizeBytes)
444444
}
445445

446446
private void UploadToCdn(string acl, string key, string policy, string algorithm, string credential, string date,
447-
string signature, Stream inputData, string contentType, long dataLength, OutputStreamFactory outputStreamFactory)
447+
string signature, Stream inputData, string contentType, long dataLength, IOutputStreamFactory outputStreamFactory)
448448
{
449449
SignalUrl signalUrl = GetRandom(SignalConnectionInformation.SignalCdnUrls);
450450
string url = signalUrl.Url;
@@ -529,7 +529,7 @@ private async Task DownloadAttachment(CancellationToken token, string url, Strea
529529
}
530530

531531
private async Task<byte[]> UploadAttachment(CancellationToken token, string method, string url, Stream data, long dataSize,
532-
OutputStreamFactory outputStreamFactory, IProgressListener listener)
532+
IOutputStreamFactory outputStreamFactory, IProgressListener listener)
533533
{
534534
// buffer payload in memory...
535535
MemoryStream tmpStream = new MemoryStream();

libsignal-service-dotnet/push/http/AttachmentCipherOutputStreamFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace libsignalservice.push.http
99
{
10-
internal class AttachmentCipherOutputStreamFactory : OutputStreamFactory
10+
internal class AttachmentCipherOutputStreamFactory : IOutputStreamFactory
1111
{
1212
private readonly byte[] Key;
1313

libsignal-service-dotnet/push/http/OutputStreamFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace libsignaldotnet.push.http
88
{
99
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
10-
public interface OutputStreamFactory
10+
public interface IOutputStreamFactory
1111
{
1212
DigestingOutputStream CreateFor(Stream wrap);
1313
}

libsignal-service-dotnet/push/http/ProfileCipherOutputStreamFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace libsignalservice.push.http
99
{
10-
internal class ProfileCipherOutputStreamFactory : OutputStreamFactory
10+
internal class ProfileCipherOutputStreamFactory : IOutputStreamFactory
1111
{
1212
private readonly byte[] Key;
1313

0 commit comments

Comments
 (0)