/// <summary>
        /// Create a new portal using the specified stores.
        /// </summary>
        /// <param name="ServiceName">DNS service name</param>
        /// <param name="MeshStore">File name for the Mesh Store.</param>
        /// <param name="PortalStore">File name for the Portal Store.</param>
        public RecryptPortalTraced(string ServiceName, string PortalStore) {
            var URI = JPCProvider.WellKnownToURI(ServiceName, RecryptService.WellKnown,
                        RecryptService.Discovery, false, true);

            var ParsedURI = new Uri(URI);
            Traces = new TraceDictionary(ServiceName, ParsedURI.PathAndQuery);
            }
Exemplo n.º 2
0
        public void MakeExamples () {
            StartService();
            Hello();


            Traces = Portal.Traces;

            using (var Writer = new StreamWriter(Output1)) {
                var ExampleGenerator = new ExampleGenerator(Writer);
                ExampleGenerator.RecryptExamplesWeb(this);
                }
            }
        void Go(string Output1, string Output2) {
            StartService();

            CreateProfile();
            PublishProfile();
            ConnectDevice();
            AddApplication();
            KeyRecovery();

            Traces = Portal.Traces;

            using (var Writer = new StreamWriter (Output1)) {
                var ExampleGenerator = new ExampleGenerator(Writer);
                ExampleGenerator.MeshExamples(this);
                }

            using (var Writer = new StreamWriter(Output2)) {
                var ExampleGenerator = new ExampleGenerator(Writer);
                ExampleGenerator.MeshExamplesWeb(this);
                }

            }