Skip to content

Commit

Permalink
renamed project to sapphiredb
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisjdev committed Nov 29, 2019
1 parent c69a785 commit f595060
Show file tree
Hide file tree
Showing 193 changed files with 638 additions and 756 deletions.
2 changes: 0 additions & 2 deletions RealtimeDatabase-Tests/.gitignore

This file was deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions RealtimeDatabase-Tests/RealtimeDatabase-Tests.csproj

This file was deleted.

3 changes: 0 additions & 3 deletions RealtimeDatabase/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions RealtimeDatabase/Command/Renew/RenewResponse.cs

This file was deleted.

9 changes: 0 additions & 9 deletions RealtimeDatabase/Command/Subscribe/SubscribeCommand.cs

This file was deleted.

9 changes: 0 additions & 9 deletions RealtimeDatabase/Command/UpdateRole/UpdateRoleResponse.cs

This file was deleted.

9 changes: 0 additions & 9 deletions RealtimeDatabase/Command/UpdateUser/UpdateUserResponse.cs

This file was deleted.

17 changes: 0 additions & 17 deletions RealtimeDatabase/RealtimeAuthContext.cs

This file was deleted.

7 changes: 0 additions & 7 deletions RealtimeDatabase/RealtimeDatabase.csproj.user

This file was deleted.

3 changes: 3 additions & 0 deletions SapphireDb/.gitignore
@@ -0,0 +1,3 @@
/obj
/bin
SapphireDatabaseCert.pfx
@@ -1,7 +1,7 @@
using RealtimeDatabase.Command.Execute;
using RealtimeDatabase.Connection;
using SapphireDb.Command.Execute;
using SapphireDb.Connection;

namespace RealtimeDatabase.Actions
namespace SapphireDb.Actions
{
public class ActionHandlerBase
{
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class ActionAuthAttribute : AuthAttributeBase
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
public class AuthAttributeBase : Attribute
{
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Property)]
public class AuthClaimInformationAttribute : Attribute
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Property)]
public class AuthUserInformationAttribute : Attribute
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class CreateAuthAttribute : AuthAttributeBase
Expand Down
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
public class CreateEventAttribute : ModelStoreEventAttributeBase
{
Expand Down
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class ModelStoreEventAttributeBase : Attribute
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
public class QueryAuthAttribute : AuthAttributeBase
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class QueryFunctionAttribute : Attribute
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class RemoveAuthAttribute : AuthAttributeBase
Expand Down
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
public class RemoveEventAttribute : ModelStoreEventAttributeBase
{
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
public class UpdatableAttribute : Attribute
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
public class UpdateAuthAttribute : AuthAttributeBase
Expand Down
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace RealtimeDatabase.Attributes
namespace SapphireDb.Attributes
{
public class UpdateEventAttribute : ModelStoreEventAttributeBase
{
Expand Down
@@ -1,7 +1,7 @@
using System;
using RealtimeDatabase.Internal;
using SapphireDb.Internal;

namespace RealtimeDatabase.Command
namespace SapphireDb.Command
{
class AuthCommandHandlerBase
{
Expand All @@ -14,7 +14,7 @@ public AuthCommandHandlerBase(AuthDbContextAccesor authDbContextAccessor, IServi
this.serviceProvider = serviceProvider;
}

public IRealtimeAuthContext GetContext()
public ISapphireAuthContext GetContext()
{
return authDbContextAccessor.GetContext();
}
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace RealtimeDatabase.Command.CloseConnection
namespace SapphireDb.Command.CloseConnection
{
class CloseConnectionCommand : CommandBase
{
Expand Down
@@ -1,18 +1,18 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using RealtimeDatabase.Connection;
using RealtimeDatabase.Helper;
using RealtimeDatabase.Internal;
using RealtimeDatabase.Models;
using SapphireDb.Connection;
using SapphireDb.Helper;
using SapphireDb.Internal;
using SapphireDb.Models;

namespace RealtimeDatabase.Command.CloseConnection
namespace SapphireDb.Command.CloseConnection
{
class CloseConnectionCommandHandler : AuthCommandHandlerBase, ICommandHandler<CloseConnectionCommand>
{
private readonly RealtimeConnectionManager connectionManager;
private readonly ConnectionManager connectionManager;

public CloseConnectionCommandHandler(AuthDbContextAccesor authDbContextAccessor, IServiceProvider serviceProvider, RealtimeConnectionManager connectionManager)
public CloseConnectionCommandHandler(AuthDbContextAccesor authDbContextAccessor, IServiceProvider serviceProvider, ConnectionManager connectionManager)
: base(authDbContextAccessor, serviceProvider)
{
this.connectionManager = connectionManager;
Expand All @@ -32,7 +32,7 @@ public async Task<ResponseBase> Handle(HttpInformation context, CloseConnectionC
{
if (command.DeleteRenewToken)
{
IRealtimeAuthContext db = GetContext();
ISapphireAuthContext db = GetContext();
db.RefreshTokens.RemoveRange(db.RefreshTokens.Where(rt => rt.UserId == userId));
}

Expand Down
@@ -1,4 +1,4 @@
namespace RealtimeDatabase.Command.CloseConnection
namespace SapphireDb.Command.CloseConnection
{
class CloseConnectionResponse : ResponseBase
{
Expand Down
@@ -1,4 +1,4 @@
namespace RealtimeDatabase.Command
namespace SapphireDb.Command
{
public class CollectionCommandBase : CommandBase
{
Expand Down

0 comments on commit f595060

Please sign in to comment.