Example #1
0
 public ServerConnector(IMazeRestClientFactory restClientFactory, IClientInfoProvider clientInfoProvider,
                        IOptions <MazeSocketOptions> options)
 {
     _restClientFactory  = restClientFactory;
     _clientInfoProvider = clientInfoProvider;
     _options            = options.Value;
 }
Example #2
0
 public MazeSocketUpgrader(HttpContext context, IHttpUpgradeFeature upgradeFeature,
                           MazeSocketOptions options)
 {
     _context        = context;
     _upgradeFeature = upgradeFeature;
     _options        = options;
 }
 public MazeSocketManagerMiddleware(RequestDelegate next, IConnectionManager connectionManager,
                                    IOptions <MazeSocketOptions> options, IServiceProvider serviceProvider)
 {
     _next = next;
     _connectionManager = connectionManager;
     _serviceProvider   = serviceProvider;
     _options           = options.Value;
 }
Example #4
0
        public MazeSocketMiddleware(RequestDelegate next, IOptions <MazeSocketOptions> options)
        {
            _next = next ?? throw new ArgumentException(nameof(next));

            if (options == null)
            {
                throw new ArgumentException(nameof(options));
            }

            _options = options.Value;
        }
Example #5
0
 public ServerConnection(MazeRestClient restClient, PackagesLock packagesLock, MazeSocketOptions options)
 {
     _options     = options;
     RestClient   = restClient;
     PackagesLock = packagesLock;
 }