Inheritance: GeneratorDefinitionBase
Exemple #1
0
        public static void InitServerDefinition()
        {
            var serverDefinition = new ServerGeneratorDefinition();
            SetCommonDefaults(serverDefinition);

            serverDefinition.CredentialsOfCurrentUser = true;
            serverDefinition.CreateNewWebApplications = 0;

            WorkingDefinition = serverDefinition;
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ServerGeneratorDefinition definition = new ServerGeneratorDefinition();
            definition.SharePointURL = "http://sp-kreso";
            definition.CredentialsOfCurrentUser = false;
            definition.Username = "******";
            definition.Password = "******";
            definition.Domain = "acceleratio";

            XmlSerializer serializer = new XmlSerializer(typeof(ServerGeneratorDefinition));
            using (TextWriter writer = new StreamWriter("SPDG_Definition.xml"))
            {
                serializer.Serialize(writer, definition);
            }
        }