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

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
- Fixed queues not being disposed
  • Loading branch information
alandoherty committed Dec 17, 2018
1 parent d3bc8e3 commit 9d42fd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
13 changes: 3 additions & 10 deletions samples/Example.General/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,9 @@ static async Task AsyncMain(string[] args) {
});

// attach
//await TestNode.AttachAsync("auth:login", RpcBehaviour.Bind<ITest001>(new Test001(Guid.NewGuid())));

// subscribe
(await TestNode.SubscribeAsync("auth:login.happened"))
.AsObservable().Subscribe(new EventObserver());

await TestNode.EmitAsync("auth:login.happened", new LoginRequestMsg() {
Password = "password",
Username = "username"
}).ConfigureAwait(false);
Service service = await TestNode.AttachAsync("auth:login", RpcBehaviour.Bind<ITest001>(new Test001(Guid.NewGuid())));

service.Dispose();

await Task.Delay(50000);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Holon/Holon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<Version>0.1.6.3</Version>
<Version>0.1.7</Version>
<Authors>Alan Doherty</Authors>
<Company>Alan Doherty</Company>
<Description>A minimal service and event bus with additional support for RPC</Description>
<Copyright>BattleCrate Ltd 2018</Copyright>
<PackageProjectUrl>https://github.com/alandoherty/holon-net</PackageProjectUrl>
<RepositoryUrl>https://github.com/alandoherty/holon-net</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>0.1.6.3</AssemblyVersion>
<AssemblyVersion>0.1.7.0</AssemblyVersion>
<PackageLicenseUrl>https://github.com/alandoherty/holon-net/blob/master/LICENSE</PackageLicenseUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageIconUrl>https://s3-eu-west-1.amazonaws.com/assets.alandoherty.co.uk/github/holon-net-nuget.png</PackageIconUrl>
<FileVersion>0.1.6.3</FileVersion>
<FileVersion>0.1.7.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
2 changes: 0 additions & 2 deletions src/Holon/Services/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,9 @@ private async Task ServiceHandleAsync(Envelope envelope) {
}

void IObserver<InboundMessage>.OnCompleted() {
throw new NotImplementedException();
}

void IObserver<InboundMessage>.OnError(Exception error) {
throw new NotImplementedException();
}

async void IObserver<InboundMessage>.OnNext(InboundMessage message) {
Expand Down

0 comments on commit 9d42fd3

Please sign in to comment.