Google Calendar API with .Net: authentication
I'm trying to use Google Calendar API in .Net. I got the following code for authentication from the official documentation:

    var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description);
    provider.ClientIdentifier = "YOUR_CLIENT_ID";
    provider.ClientSecret = "YOUR_CLIENT_SECRET";
    AuthenticatorFactory.GetInstance().RegisterAuthenticator(() => new OAuth2Authenticator(provider, GetAuthentication));
    // Create the service. This will automatically call the previously registered authenticator.
    var service = new CalendarService();  
The problem is that, there doesn't seem to be a class named "AuthenticatorFactory" in any of the assemblies. Could somebody post some example code?
Google Calendar API with .Net: authentication
===

I'm trying to use Google Calendar API in .Net. I got the following code for authentication from the official documentation:

    var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description);
    provider.ClientIdentifier = "YOUR_CLIENT_ID";
    provider.ClientSecret = "YOUR_CLIENT_SECRET";
    AuthenticatorFactory.GetInstance().RegisterAuthenticator(() => new OAuth2Authenticator(provider, GetAuthentication));
    // Create the service. This will automatically call the previously registered authenticator.
    var service = new CalendarService();  
The problem is that, there doesn't seem to be a class named "AuthenticatorFactory" in any of the assemblies. Could somebody post some example code?