예제 #1
0
        static void Main(string[] args)
        {
            var ds = DefaultStore.GetDeployerStore();

            var serializer = new ConfigurationContainer()
                             .Type <Device>().EnableReferences(x => x.Id)
                             .UseOptimizedNamespaces()
                             .Create();

            var serialized = serializer.Serialize(new XmlWriterSettings()
            {
                Indent = true
            }, ds);

            File.WriteAllText(OutputXml, serialized);

            var psi = new ProcessStartInfo(OutputXml)
            {
                UseShellExecute = true,
            };

            Process.Start(psi);
        }
 public Task <DeployerStore> Get()
 {
     return(Task.FromResult(DefaultStore.GetDeployerStore()));
 }