title: How To create an instance of Google BaseClientService.Initializer
body: <p>I want to know how to create an instance of Google <code>BaseClientService.Initializer</code>.  I need to use the <code>BaseClientService.Initializer</code> to create the <code>GmailService</code> instance, and then use this <code>GmailService</code> instance to create an <code>UsersResource</code> instance.</p>
  
  <pre><code>Google.Apis.Services.BaseClientService.Initializer initializer = new BaseClientService.Initializer();
  initializer.ApiKey = "MyApiKey";
  initializer.ApplicationName = "MyProject";
  initializer.DefaultExponentialBackOffPolicy = Google.Apis.Http.ExponentialBackOffPolicy.None;
  Google.Apis.Gmail.v1.GmailService gmailService = new GmailService(initializer);      
  Google.Apis.Gmail.v1.UsersResource usersResource = new UsersResource(gmailService);
  UsersResource.MessagesResource messagesResource = usersResource.Messages;
  </code></pre>