Skip to content

Commit

Permalink
Merge pull request #2 from Surveily/feature/fire-and-forget
Browse files Browse the repository at this point in the history
Feature/fire and forget
  • Loading branch information
turowicz authored Jul 25, 2023
2 parents 734d010 + b755af4 commit b913bbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
9 changes: 0 additions & 9 deletions src/Orleans.Streaming.Grains.Tests/BaseGrainTestConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ public void Configure(ISiloBuilder siloBuilder)

public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
{
clientBuilder.ConfigureServices(Configure)
.Configure<GrainsOptions>(options =>
{
options.FireAndForgetDelivery = _fireAndForget;
})
.AddPersistentStreams("Default", GrainsQueueAdapterFactory.Create, config => config.Configure<GrainsOptions>(options =>
{
options.Configure(x => x.FireAndForgetDelivery = _fireAndForget);
}));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Orleans.Streaming.Grains/Streams/GrainsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Orleans.Streaming.Grains.Streams
{
public class GrainsOptions
{
public bool FireAndForgetDelivery { get; set; } = false;
public bool FireAndForgetDelivery { get; set; } = true;

public TimeSpan Timeout { get; set; } = TimeSpan.FromSeconds(300);
}
Expand Down
7 changes: 3 additions & 4 deletions src/nuget.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ ADD README.md README.md
ADD src/ .

RUN mkdir nuget

RUN dotnet build . -c Release
RUN dotnet pack --no-restore -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:PackageVersion=${version} -o nuget/ Orleans.Streaming.Grains/Orleans.Streaming.Grains.csproj

RUN dotnet pack --no-restore -c Release -p:PackageVersion=${version} -o nuget/ Orleans.Streaming.Grains/Orleans.Streaming.Grains.csproj

RUN dotnet nuget push -s nuget.org -k ${password} nuget/Orleans.Streaming.Grains.${version}.nupkg
WORKDIR /home/vscode/src/nuget
RUN dotnet nuget push -s nuget.org -k ${password} Orleans.Streaming.Grains.${version}.nupkg

0 comments on commit b913bbe

Please sign in to comment.