Skip to content

fix addomain extension #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,44 @@ public abstract class BaseAzureServiceADDomainExtensionCmdlet : BaseAzureService
protected const string WorkgroupParameterSet = "WorkGroupName";
protected const string WorkgroupThumbprintParameterSet = "WorkGroupNameThumbprint";

protected PublicConfig PublicConfig { get; private set; }
protected PrivateConfig PrivateConfig { get; private set; }
protected PublicConfig publicConfig;
protected PrivateConfig privateConfig;

protected PublicConfig PublicConfig
{
get
{
if (this.publicConfig == null)
{
this.publicConfig = new PublicConfig();
}

return this.publicConfig;
}

private set
{
this.publicConfig = value;
}
}

protected PrivateConfig PrivateConfig
{
get
{
if (this.privateConfig == null)
{
this.privateConfig = new PrivateConfig();
}

return this.privateConfig;
}

private set
{
this.privateConfig = value;
}
}

public virtual string DomainName
{
Expand Down Expand Up @@ -152,8 +188,6 @@ protected override void ValidateParameters()
base.ValidateParameters();
ProviderNamespace = DomainExtensionNamespace;
ExtensionName = DomainExtensionType;
PublicConfig = new PublicConfig();
PrivateConfig = new PrivateConfig();
PrivateConfig.Password = string.Empty;
PrivateConfig.UnjoinDomainPassword = string.Empty;
}
Expand Down