Example #1
0
        public ActionResult SendPortGroup(string applicationName, string artifactid, string version)
        {
            Manifest manifest = ManifestReader.GetCurrentManifest(version, Request.PhysicalApplicationPath);

            BizTalkInstallation installation = InstallationReader.GetBizTalkInstallation(manifest);

            BizTalkApplication application = installation.Applications[applicationName];

            SendPortGroup sendPortGroup = application.SendPortGroups[artifactid];

            var breadCrumbs = new List <BizTalkBaseObject>
            {
                application,
                sendPortGroup
            };

            return(View(new SendPortGroupViewModel(
                            application,
                            ManifestReader.GetAllManifests(Request.PhysicalApplicationPath),
                            manifest,
                            breadCrumbs,

                            installation.Applications.Values,
                            installation.Hosts.Values,
                            sendPortGroup)));
        }
Example #2
0
        public ActionResult ReceivePort(string applicationName, string artifactid, string version)
        {
            Manifest manifest = ManifestReader.GetCurrentManifest(version, Request.PhysicalApplicationPath);

            BizTalkInstallation installation = InstallationReader.GetBizTalkInstallation(manifest);

            BizTalkApplication application = installation.Applications[applicationName];

            ReceivePort receivePort = application.ReceivePorts[artifactid];

            var breadCrumbs = new List <BizTalkBaseObject>
            {
                application,
                receivePort
            };

            return(View(new ReceivePortViewModel(
                            application,
                            ManifestReader.GetAllManifests(Request.PhysicalApplicationPath),
                            manifest,
                            breadCrumbs,

                            installation.Applications.Values,
                            installation.Hosts.Values,
                            receivePort)));
        }
Example #3
0
        public ActionResult Assembly(string applicationName, string artifactid, string version)
        {
            Manifest manifest = ManifestReader.GetCurrentManifest(version, Request.PhysicalApplicationPath);

            BizTalkInstallation installation = InstallationReader.GetBizTalkInstallation(manifest);

            BizTalkApplication application = installation.Applications[applicationName];

            BizTalkAssembly assembly = application.Assemblies[artifactid];

            var breadCrumbs = new List <BizTalkBaseObject>
            {
                application,
                assembly
            };

            return(View(new AssemblyViewModel(
                            application,
                            ManifestReader.GetAllManifests(Request.PhysicalApplicationPath),
                            manifest,
                            breadCrumbs,

                            installation.Applications.Values,
                            installation.Hosts.Values,
                            assembly)));
        }
Example #4
0
        public ActionResult Map(string applicationName, string artifactid, string version)
        {
            Manifest manifest = ManifestReader.GetCurrentManifest(version, Request.PhysicalApplicationPath);

            BizTalkInstallation installation = InstallationReader.GetBizTalkInstallation(manifest);

            BizTalkApplication application = installation.Applications[applicationName];

            Transform transform = application.Maps[artifactid];

            var breadCrumbs = new List <BizTalkBaseObject>
            {
                application,
                transform
            };

            return(View(new TransformViewModel(
                            application,
                            ManifestReader.GetAllManifests(Request.PhysicalApplicationPath),
                            manifest,
                            breadCrumbs,

                            installation.Applications.Values,
                            installation.Hosts.Values,
                            transform)));
        }
Example #5
0
        public ActionResult Index(string version)
        {
            Manifest            manifest     = ManifestReader.GetCurrentManifest(version, Request.PhysicalApplicationPath);
            BizTalkInstallation installation = InstallationReader.GetBizTalkInstallation(manifest);

            var breadCrumbs = new List <BizTalkBaseObject>();

            return(View(new HomeViewModel(
                            ManifestReader.GetAllManifests(Request.PhysicalApplicationPath),
                            manifest,
                            breadCrumbs,
                            installation.Applications.Values,
                            installation.Hosts.Values)));
        }
Example #6
0
        public BinaryFileResult Schema(string artifactid, string version)
        {
            Manifest mainfest = ManifestReader.GetCurrentManifest(version, Request.PhysicalApplicationPath);

            string filePath = Path.Combine(Path.Combine(mainfest.Path, "Assets/Schemas"), string.Concat(artifactid, ".gz"));

            Encoding encoding = GetEncoding(filePath);

            return(new BinaryFileResult(filePath, "text/xml")
            {
                Charset = encoding.HeaderName,
                ContentEncoding = "gzip"
            });
        }
Example #7
0
        public ActionResult OrchestrationThumb(string artifactid, string version)
        {
            Manifest mainfest = ManifestReader.GetCurrentManifest(version, Request.PhysicalApplicationPath);

            return(File(Path.Combine(Path.Combine(mainfest.Path, "Assets/Overview"), string.Concat(artifactid, "_thumb.jpg")), "image/jpeg"));
        }