private AGConnectApp(AppOptions options, string name) { this.options = new AppOptions(options); this.Name = name; }
/// <summary> /// Creates the default app instance with the specified options. /// </summary> /// <returns>The newly created <see cref="AGConnectApp"/> instance.</returns> /// <exception cref="System.ArgumentException">If the default app instance already /// exists.</exception> /// <param name="options">Options to create the app with. Must at least contain the /// <c>Credential</c>.</param> public static AGConnectApp Create(AppOptions options) { return(Create(options, DefaultAppName)); }