Exemplo n.º 1
0
        public AWSHubCallerClients(IAWSSocketConnectionStore <SocketConnection> socketConnectionStore,
                                   IAWSSocketManager awsSocketManager)
        {
            this._socketConnectionStore = socketConnectionStore;
            this._awsSocketManager      = awsSocketManager;

            _allClientProxy = new AWSClientProxy(((x) => x.GetAllClients()), _socketConnectionStore, _awsSocketManager);
        }
 public AWSClientProxy(Func <IAWSSocketConnectionStore <SocketConnection>, Task <List <SocketConnection> > > getConnections,
                       IAWSSocketConnectionStore <SocketConnection> connectionStore,
                       IAWSSocketManager awsSocketManager
                       )
 {
     this._getConnections   = getConnections;
     this._connectionStore  = connectionStore;
     this._awsSocketManager = awsSocketManager;
 }
Exemplo n.º 3
0
 public TestHub(
     HubCallerContext hubCallerContext,
     IGroupManager groups,
     IHubClients clients,
     ILogger <TestHub> logger,
     IAWSSocketConnectionStore <SocketConnection> connectionStore
     ) : base(hubCallerContext, groups, clients)
 {
     this._logger          = logger;
     this._connectionStore = connectionStore;
 }
Exemplo n.º 4
0
 public UnitTest1(Fixture fixture)
 {
     this.fixture          = fixture;
     this._connectionStore = new DynamoDbSocketConnectionStore(fixture.Context, null);
 }
Exemplo n.º 5
0
 public AWSSocketGroupManager(IAWSSocketConnectionStore <SocketConnection> connectionStore)
 {
     this._connectionStore = connectionStore;
 }
Exemplo n.º 6
0
 public AWSSocketManager(IAmazonApiGatewayManagementApi apiGatewayManagementApi, IAWSSocketConnectionStore <SocketConnection> connectionStore, ILogger <AWSSocketManager> logger)
 {
     this._apiGatewayManagementApi = apiGatewayManagementApi;
     this._connectionStore         = connectionStore;
     this._logger = logger;
 }