Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Apr 22, 2020
1 parent bc828c4 commit 600cfe4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Analogy.LogViewer.WCF/Analogy.LogViewer.WCF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>WCF Client/Server for sending/receiving Analogy messages (.net Framework 4.7.2</PackageReleaseNotes>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Analogy.LogViewer.Interfaces" Version="2.2.3" />
Expand Down
26 changes: 13 additions & 13 deletions Analogy.LogViewer.WCF/IAnalogy/ShareableComponent.cs
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Analogy.Interfaces;
using Analogy.Interfaces;
using Analogy.LogViewer.WCF.Managers;
using Analogy.LogViewer.WCF.WCFServices;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Analogy.LogViewer.WCF.IAnalogy
{
public class ShareableComponent: IAnalogyShareable
public class ShareableComponent : IAnalogyShareable
{

public string OptionalTitle { get; set; } = "Analogy WCF share";
private AnalogyClientSender proxy;

public Task<bool> InitializeSender()
{
proxy=new AnalogyClientSender(UserSettingsManager.UserSettings.Settings.IP, UserSettingsManager.UserSettings.Settings.Port);
proxy = new AnalogyClientSender(UserSettingsManager.UserSettings.Settings.IP, UserSettingsManager.UserSettings.Settings.Port);

proxy.Connect();
return Task.FromResult(true);
}

public void SendMessage(AnalogyLogMessage message, string source)
{
proxy.SendMessage(message,source);
proxy.SendMessage(message, source);
}

public void SendMessages(IEnumerable<AnalogyLogMessage> messages, string source)
public void SendMessages(List<AnalogyLogMessage> messages, string source)
{
proxy.SendMessages(messages.ToList(),source);
proxy.SendMessages(messages, source);
}

public void SendMessages(byte[] messages, string source)
{
proxy.SendMessages(messages,source);
proxy.SendMessages(messages, source);
}

public Task<bool> CleanupSender()
Expand All @@ -42,5 +41,6 @@ public Task<bool> CleanupSender()
proxy.Dispose();
return Task.FromResult(true);
}

}
}

0 comments on commit 600cfe4

Please sign in to comment.