Exemplo n.º 1
0
        protected override void ExecuteCmdlet()
        {
            var manager = new OfficeDevPnP.Core.ALM.AppManager(ClientContext);

            var app = Identity.GetAppMetadata(ClientContext, Scope);

            if (app != null)
            {
                manager.Retract(app, Scope);
            }
            else
            {
                throw new Exception("Cannot find app");
            }
        }
Exemplo n.º 2
0
        protected override void ExecuteCmdlet()
        {
            var manager = new OfficeDevPnP.Core.ALM.AppManager(ClientContext);

            var app = Identity.GetAppMetadata(ClientContext, AppCatalogScope.Tenant);

            if (app != null)
            {
                manager.SyncToTeams(app);
            }
            else
            {
                throw new Exception("Cannot find app");
            }
        }
Exemplo n.º 3
0
        protected override void ExecuteCmdlet()
        {
            var manager = new OfficeDevPnP.Core.ALM.AppManager(ClientContext);

            manager.Remove(Identity.Id);
        }
Exemplo n.º 4
0
        protected override void ExecuteCmdlet()
        {
            var manager = new OfficeDevPnP.Core.ALM.AppManager(ClientContext);

            manager.Deploy(Identity.Id, SkipFeatureDeployment);
        }
Exemplo n.º 5
0
        protected override void ExecuteCmdlet()
        {
            var manager = new OfficeDevPnP.Core.ALM.AppManager(ClientContext);

            manager.Uninstall(Identity.GetId());
        }