示例#1
0
        public bool CreateServer(Action <IServiceCollection> configureServices)
        {
            if (_fomoApiFactory == null)
            {
                _fomoApiFactory = new FomoApiApplicationFactory(configureServices);
                return(true);
            }

            return(false);
        }
示例#2
0
        public void Dispose()
        {
            if (_httpClientNoAuth != null)
            {
                _httpClientNoAuth.Dispose();
                _httpClientNoAuth = null;
            }

            if (_fomoApiFactory != null)
            {
                _fomoApiFactory.Dispose();
                _fomoApiFactory = null;
            }

            Disposed = true;
        }