Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
Also happens in my C# VSTO, which can cause Excel to hang and force termination 
at the process.

Original comment by [email protected] on 19 Nov 2014 at 2:44

from google-api-dotnet-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024

Original comment by [email protected] on 23 Nov 2014 at 3:26

  • Changed state: Accepted
  • Added labels: Milestone-Release1.9.1

from google-api-dotnet-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024

Original comment by [email protected] on 23 Dec 2014 at 1:49

  • Added labels: Milestone-Release1.9.2
  • Removed labels: Milestone-Release1.9.1

from google-api-dotnet-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
I got the same issue.
Tried to fix this like that : 

using (var cts = new CancellationTokenSource())
{
    cts.CancelAfter(TimeSpan.FromMinutes(1));

    return GoogleWebAuthorizationBroker.AuthorizeAsync(
                            clientSecrets,
                            new[] { GOOGLE_SITES_SCOPE },
                            "user",
                            cts.Token,
                            _fileDataStore).Result;
}

but cancellation does not always occur.

Original comment by [email protected] on 1 Apr 2015 at 8:50

from google-api-dotnet-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
I tried the same thing but with a longer TimeSpan.  I haven't been able to 
figure out why the timeout won't work in some cases.  I have a higher successes 
rate in my console apps than VSTO, so I think it might have something to do 
with the starting environment.

Original comment by [email protected] on 1 Apr 2015 at 1:39

from google-api-dotnet-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.