Skip to content

Commit ccb328b

Browse files
authored
Fix Namespaces (#19)
1 parent 707278d commit ccb328b

File tree

10 files changed

+10
-15
lines changed

10 files changed

+10
-15
lines changed

Source/Orleans.StorageProviderInterceptors/Abstractions/INamedStorageInterceptorFactory.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
namespace Orleans.StorageProviderInterceptors.Abstractions;
2-
using Tester.StorageFacet.Abstractions;
32

43
using Orleans.Runtime;
54

Source/Orleans.StorageProviderInterceptors/Abstractions/IStorageInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Tester.StorageFacet.Abstractions;
1+
namespace Orleans.StorageProviderInterceptors.Abstractions;
22
using Orleans.Runtime;
33
using Orleans;
44

Source/Orleans.StorageProviderInterceptors/Abstractions/IStorageInterceptorConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Tester.StorageFacet.Abstractions;
1+
namespace Orleans.StorageProviderInterceptors.Abstractions;
22

33
using Orleans.Runtime;
44
using Orleans.Storage;

Source/Orleans.StorageProviderInterceptors/Abstractions/IStorageInterceptorFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Tester.StorageFacet.Abstractions;
1+
namespace Orleans.StorageProviderInterceptors.Abstractions;
22

33
using Orleans.Runtime;
44

Source/Orleans.StorageProviderInterceptors/Abstractions/StorageInterceptorAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Tester.StorageFacet.Abstractions;
1+
namespace Orleans.StorageProviderInterceptors.Abstractions;
22
using System;
33
using Orleans;
44

Source/Orleans.StorageProviderInterceptors/Abstractions/StorageInterceptorConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Tester.StorageFacet.Abstractions;
1+
namespace Orleans.StorageProviderInterceptors.Abstractions;
22

33
/// <summary>
44
/// Feature configuration utility class

Source/Orleans.StorageProviderInterceptors/Infrastructure/NamedStorageInterceptorFactory.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ namespace Orleans.StorageProviderInterceptors.Infrastructure;
77
using Orleans.Runtime;
88
using Orleans.Storage;
99
using Orleans.Utilities;
10-
using Tester.StorageFacet.Abstractions;
10+
using Orleans.StorageProviderInterceptors.Abstractions;
1111
using System.Text;
1212
using System.Collections.Concurrent;
13-
using Orleans.StorageProviderInterceptors.Abstractions;
1413
using Orleans.Hosting;
1514

1615
/// <summary>

Source/Orleans.StorageProviderInterceptors/Infrastructure/StorageInterceptorAttributeMapper.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
namespace Tester.StorageFacet.Infrastructure;
1+
namespace Orleans.StorageProviderInterceptors.Infrastructure;
22
using System.Reflection;
33
using Microsoft.Extensions.DependencyInjection;
44
using Orleans;
55
using Orleans.Runtime;
66
using Orleans.StorageProviderInterceptors.Abstractions;
7-
using Tester.StorageFacet.Abstractions;
87

98
/// <summary>
109
/// TODO

Source/Orleans.StorageProviderInterceptors/Infrastructure/StorageInterceptorExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ namespace Orleans.Hosting;
33
using Orleans.Runtime;
44
using Orleans.StorageProviderInterceptors.Abstractions;
55
using Orleans.StorageProviderInterceptors.Infrastructure;
6-
using Tester.StorageFacet.Abstractions;
7-
using Tester.StorageFacet.Infrastructure;
86

97
/// <summary>
108
/// TODO
@@ -15,7 +13,7 @@ public static class StorageInterceptorExtensions
1513
/// TODO
1614
/// </summary>
1715
/// <param name="builder"></param>
18-
public static ISiloBuilder UseStorageInterceptor(this ISiloBuilder builder) => builder.ConfigureServices(services =>
16+
public static ISiloBuilder AddStorageInterceptors(this ISiloBuilder builder) => builder.ConfigureServices(services =>
1917
{
2018
// storage feature factory infrastructure
2119
services.AddTransient<INamedStorageInterceptorFactory, NamedStorageInterceptorFactory>();

Source/Sample/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
using Orleans.Configuration;
66
using Orleans.Hosting;
77
using Orleans.Runtime;
8+
using Orleans.StorageProviderInterceptors.Abstractions;
89
using Sample;
9-
using Tester.StorageFacet.Abstractions;
1010

1111
// Configure the host
1212

@@ -17,7 +17,7 @@
1717
.Configure<StatisticsOptions>(c => c.CollectionLevel = Orleans.Runtime.Configuration.StatisticsLevel.Critical)
1818
.ConfigureLogging(c => c.SetMinimumLevel(LogLevel.None))
1919
.AddMemoryGrainStorage("SecretsStorage")
20-
.UseStorageInterceptor()
20+
.AddStorageInterceptors()
2121
.UseGenericStorageInterceptor<Dictionary<string, string>>("SecretsStorage", "secretsState", c =>
2222
{
2323
c.OnBeforeReadStateAsync = (grainActivationContext, currentState) =>

0 commit comments

Comments
 (0)