Skip to content

Commit

Permalink
Fix Namespaces (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElanHasson authored Sep 20, 2022
1 parent 707278d commit ccb328b
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
namespace Orleans.StorageProviderInterceptors.Abstractions;
using Tester.StorageFacet.Abstractions;

using Orleans.Runtime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Tester.StorageFacet.Abstractions;
namespace Orleans.StorageProviderInterceptors.Abstractions;
using Orleans.Runtime;
using Orleans;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Tester.StorageFacet.Abstractions;
namespace Orleans.StorageProviderInterceptors.Abstractions;

using Orleans.Runtime;
using Orleans.Storage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Tester.StorageFacet.Abstractions;
namespace Orleans.StorageProviderInterceptors.Abstractions;

using Orleans.Runtime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Tester.StorageFacet.Abstractions;
namespace Orleans.StorageProviderInterceptors.Abstractions;
using System;
using Orleans;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Tester.StorageFacet.Abstractions;
namespace Orleans.StorageProviderInterceptors.Abstractions;

/// <summary>
/// Feature configuration utility class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ namespace Orleans.StorageProviderInterceptors.Infrastructure;
using Orleans.Runtime;
using Orleans.Storage;
using Orleans.Utilities;
using Tester.StorageFacet.Abstractions;
using Orleans.StorageProviderInterceptors.Abstractions;
using System.Text;
using System.Collections.Concurrent;
using Orleans.StorageProviderInterceptors.Abstractions;
using Orleans.Hosting;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
namespace Tester.StorageFacet.Infrastructure;
namespace Orleans.StorageProviderInterceptors.Infrastructure;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
using Orleans;
using Orleans.Runtime;
using Orleans.StorageProviderInterceptors.Abstractions;
using Tester.StorageFacet.Abstractions;

/// <summary>
/// TODO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ namespace Orleans.Hosting;
using Orleans.Runtime;
using Orleans.StorageProviderInterceptors.Abstractions;
using Orleans.StorageProviderInterceptors.Infrastructure;
using Tester.StorageFacet.Abstractions;
using Tester.StorageFacet.Infrastructure;

/// <summary>
/// TODO
Expand All @@ -15,7 +13,7 @@ public static class StorageInterceptorExtensions
/// TODO
/// </summary>
/// <param name="builder"></param>
public static ISiloBuilder UseStorageInterceptor(this ISiloBuilder builder) => builder.ConfigureServices(services =>
public static ISiloBuilder AddStorageInterceptors(this ISiloBuilder builder) => builder.ConfigureServices(services =>
{
// storage feature factory infrastructure
services.AddTransient<INamedStorageInterceptorFactory, NamedStorageInterceptorFactory>();
Expand Down
4 changes: 2 additions & 2 deletions Source/Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
using Orleans.Configuration;
using Orleans.Hosting;
using Orleans.Runtime;
using Orleans.StorageProviderInterceptors.Abstractions;
using Sample;
using Tester.StorageFacet.Abstractions;

// Configure the host

Expand All @@ -17,7 +17,7 @@
.Configure<StatisticsOptions>(c => c.CollectionLevel = Orleans.Runtime.Configuration.StatisticsLevel.Critical)
.ConfigureLogging(c => c.SetMinimumLevel(LogLevel.None))
.AddMemoryGrainStorage("SecretsStorage")
.UseStorageInterceptor()
.AddStorageInterceptors()
.UseGenericStorageInterceptor<Dictionary<string, string>>("SecretsStorage", "secretsState", c =>
{
c.OnBeforeReadStateAsync = (grainActivationContext, currentState) =>
Expand Down

0 comments on commit ccb328b

Please sign in to comment.