// ===++===
//
// OrtizOL
//
// ===--===
/*============================================================
//
// Clase: CreacionAppDomain.cs
//
// Propósito: Demostrar el proceso de creación de un
// dominio de aplicación (AppDomain) en C#.
//
============================================================*/
using System;
using System.Reflection;
namespace Recetas.Cap03
{
internal class CreacionAppDomain
{
public static void Main()
{
Console.WriteLine("\nCreando un nuevo AppDomain:");
AppDomain dominio = AppDomain.CreateDomain("NuevoDominio");
Console.WriteLine("Dominio anfitrión: {0}", AppDomain.CurrentDomain.FriendlyName.ToString());
Console.WriteLine("Dominio huésped: {0}\n", dominio.FriendlyName.ToString());
}
}
}
Ly8gPT09Kys9PT0KLy8KLy8JT3J0aXpPTAovLwovLyA9PT0tLT09PQovKj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQovLwovLyBDbGFzZTogQ3JlYWNpb25BcHBEb21haW4uY3MKLy8KLy8gUHJvcMOzc2l0bzogRGVtb3N0cmFyIGVsIHByb2Nlc28gZGUgY3JlYWNpw7NuIGRlIHVuIAovLyBkb21pbmlvIGRlIGFwbGljYWNpw7NuIChBcHBEb21haW4pIGVuIEMjLgovLwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0qLwoKdXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uUmVmbGVjdGlvbjsKCm5hbWVzcGFjZSBSZWNldGFzLkNhcDAzCnsKCWludGVybmFsIGNsYXNzIENyZWFjaW9uQXBwRG9tYWluCgl7CgkJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJCXsKCQkJQ29uc29sZS5Xcml0ZUxpbmUoIlxuQ3JlYW5kbyB1biBudWV2byBBcHBEb21haW46Iik7CgkJCUFwcERvbWFpbiBkb21pbmlvID0gQXBwRG9tYWluLkNyZWF0ZURvbWFpbigiTnVldm9Eb21pbmlvIik7CgkJCQoJCQlDb25zb2xlLldyaXRlTGluZSgiRG9taW5pbyBhbmZpdHJpw7NuOiB7MH0iLCBBcHBEb21haW4uQ3VycmVudERvbWFpbi5GcmllbmRseU5hbWUuVG9TdHJpbmcoKSk7CgkJCUNvbnNvbGUuV3JpdGVMaW5lKCJEb21pbmlvIGh1w6lzcGVkOiB7MH1cbiIsIGRvbWluaW8uRnJpZW5kbHlOYW1lLlRvU3RyaW5nKCkpOwoJCX0KCX0KfQ==