public ContainerServiceAcceptanceTests(AcceptanceFixture fixture)
        {
            Fixture = fixture;

            ContainerBasePath = Fixture.TempDirectory;

            Service = new ContainerService(ContainerBasePath, Fixture.SecurityGroupName);
        }
        protected void ExecuteContainerServiceCreateOrUpdateMethod(object[] invokeMethodInputParameters)
        {
            string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
            string containerServiceName = (string)ParseParameter(invokeMethodInputParameters[1]);
            ContainerService parameters = (ContainerService)ParseParameter(invokeMethodInputParameters[2]);

            var result = ContainerServiceClient.CreateOrUpdate(resourceGroupName, containerServiceName, parameters);
            WriteObject(result);
        }
Exemplo n.º 3
0
        public void InicializaPlugin(AgendamentoInfo dadosAgendamento)
        {
            var _container = new ContainerService(new List <ServicesEnum>()
            {
                ServicesEnum.WebService, ServicesEnum.OCRService
            });

            WorkflowAbertura.InicializaEtapa(_container.GetPom <OmniCobrancaPom>());
        }
Exemplo n.º 4
0
        public void Load()
        {
            try
            {
                Client = ContainerService.Resolve <IDelfinServices>();
                Fecha  = Client.GetFecha();

                String fecha = Fecha.ToString("yyyyMMdd");
                Entities.TiposCambio _TCambio = Client.GetOneTiposCambio(fecha);
                MensajeError = "";
                if (_TCambio != null)
                {
                    TipoCambio = _TCambio.TIPC_Venta;
                    if (!(TipoCambio > 0))
                    {
                        MensajeError = String.Format("El tipo de Cambio definido para [{0:dd/MM/yyyy}] no es correcto.", Fecha); Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Title, MensajeError);
                    }
                }
                else
                {
                    MensajeError = String.Format("No se ha definido el tipo de cambio para el dia {0:dd/MM/yyyy}", Fecha); Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeInformacion(Title, MensajeError);
                }

                switch (TPlanilla)
                {
                case Planillas.TipoPlanilla.MedioVirtual:
                    Title = "EXPORTACIÓN A BANCOS";
                    CUS   = "CAJ007";
                    break;

                case Planillas.TipoPlanilla.Detracciones:
                    Title = "EXPORTACIÓN DETRACCIÓN";
                    CUS   = "CAJ008";
                    break;

                default:
                    break;
                }

                Entities.Parametros para = Client.GetOneParametrosByClave("EMPRESA");
                if (para != null)
                {
                    RUC_Empresa = para.PARA_Valor;
                }

                LView.LoadView();

                PathExportacion = Path.Combine(System.Windows.Forms.Application.StartupPath, "Exportacion");
                if (!Directory.Exists(PathExportacion))
                {
                    Directory.CreateDirectory(PathExportacion);
                }
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error inicializando la vista.", ex); }
        }
Exemplo n.º 5
0
 public void Load()
 {
     try
     {
         Client = ContainerService.Resolve <Delfin.ServiceContracts.IDelfinServices>();
         LView.LoadView();
     }
     catch (Exception ex)
     { Dialogos.MostrarMensajeError(Title, Mensajes.LoadPresenter, ex); }
 }
Exemplo n.º 6
0
 public void Load()
 {
     try
     {
         Client = ContainerService.Resolve <Delfin.ServiceContracts.IDelfinServices>();
         LView.LoadView();
     }
     catch (Exception ex)
     { Infrastructure.WinFormsControls.Dialogos.MostrarMensajeError(Title, Infrastructure.Aspect.Constants.Mensajes.LoadPresenter, ex); }
 }
        protected PSArgument[] CreateContainerServiceCreateOrUpdateParameters()
        {
            string           resourceGroupName    = string.Empty;
            string           containerServiceName = string.Empty;
            ContainerService parameters           = new ContainerService();

            return(ConvertFromObjectsToArguments(
                       new string[] { "ResourceGroupName", "ContainerServiceName", "Parameters" },
                       new object[] { resourceGroupName, containerServiceName, parameters }));
        }
Exemplo n.º 8
0
        public override async Task StartAsync()
        {
            var view = await ViewFactory.CreateActiveViewAsync <CommandBarContainerPresenter>(ActivityInfo);

            var commandBarService = new CommandBarService(view.Presenter);

            commandBarServiceHost.RegisterDefaultCommandBarService(commandBarService);

            ContainerService.SetViewContainer(ActivityInfo.Location, view.View);
        }
 public void Load()
 {
     try
     {
         Client = ContainerService.Resolve <IDelfinServices>();
         LView.LoadView();
     }
     catch (Exception ex)
     { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error inicializando la vista.", ex); }
 }
Exemplo n.º 10
0
        public DungeonGameData()
        {
            Rules         = new DungeonGameRules();
            containerRefs = new ContainerReferenceProvider();
            containerSrv  = new ContainerService();
            itemService   = new ItemService(containerSrv, containerSrv, containerRefs);
            charService   = new CharacterService(itemService);

            Map = new DungeonMap(100, 100, Rules);
            Map.FloorLayer[98, 98] = Rules.Floors.Stone;

            Map.FloorLayer[0, 0]      = Rules.Floors.Stone;
            Map.FloorLayer[1, 0]      = Rules.Floors.Stone;
            Map.FloorLayer[2, 0]      = Rules.Floors.Stone;
            Map.FloorLayer[2, 1]      = Rules.Floors.Stone;
            Map.FloorLayer[3, 1]      = Rules.Floors.Stone;
            Map.FloorLayer[4, 1]      = Rules.Floors.Stone;
            Map.FloorLayer[5, 1]      = Rules.Floors.Stone;
            Map.FloorLayer[2, 2]      = Rules.Floors.Stone;
            Map.FloorLayer[2, 3]      = Rules.Floors.Stone;
            Map.FloorLayer[5, 3]      = Rules.Floors.Stone;
            Map.FloorLayer[2, 4]      = Rules.Floors.Stone;
            Map.FloorLayer[3, 4]      = Rules.Floors.Stone;
            Map.FloorLayer[4, 4]      = Rules.Floors.Stone;
            Map.FloorLayer[5, 4]      = Rules.Floors.Stone;
            Map.WallLayer[0, 0]       = Rules.Walls.Stone;
            Map.WallLayer[1, 0]       = Rules.Walls.Stone;
            Map.WallLayer[2, 0]       = Rules.Walls.Stone;
            Map.WallLayer[2, 1]       = Rules.Walls.Stone;
            Map.WallLayer[3, 1]       = Rules.Walls.Stone;
            Map.WallLayer[4, 1]       = Rules.Walls.Stone;
            Map.WallLayer[5, 1]       = Rules.Walls.Stone;
            Map.WallLayer[2, 2]       = Rules.Walls.Stone;
            Map.WallLayer[5, 2]       = Rules.Walls.Stone;
            Map.WallLayer[2, 3]       = Rules.Walls.Stone;
            Map.WallLayer[5, 3]       = Rules.Walls.Stone;
            Map.WallLayer[2, 4]       = Rules.Walls.Stone;
            Map.WallLayer[3, 4]       = Rules.Walls.Stone;
            Map.WallLayer[4, 4]       = Rules.Walls.Passage;
            Map.WallLayer[5, 4]       = Rules.Walls.Stone;
            Map.DecorationLayer[2, 2] = Rules.Decorations.Shelf;
            Map.DecorationLayer[4, 1] = Rules.Decorations.Shelf;
            Map.DecorationLayer[2, 3] = Rules.Decorations.Window;
            Map.DecorationLayer[5, 2] = Rules.Decorations.Window;


            Map.WallLayer[10, 10] = Rules.Walls.Stone;
            Map.WallLayer[10, 12] = Rules.Walls.Stone;
            Map.WallLayer[12, 12] = Rules.Walls.Stone;
            Map.WallLayer[12, 10] = Rules.Walls.Stone;

            CreateItemAt(Rules.Items.Chest, 5, 5);

            SpawnJesters(1000);
        }
Exemplo n.º 11
0
        private async Task MainLoop()
        {
            _logger.LogInformation("MainLoop Start");


            var containerService = new ContainerService();

            containerService.MessageCalled = (x => _logger.LogInformation(x));

            while (!_stoppingCts.IsCancellationRequested)
            {
                try
                {
                    //コンテナ情報読み込み
                    var containerSettingList = await LoadContainerSettingsList();

                    ///jsonにないcontainerを削除ループ
                    var RunningContainers = await containerService.GetAllContainer();

                    foreach (var rc in RunningContainers)
                    {
                        if (!containerSettingList.ContainerSettings.Any(x => $"{x.Image}:{x.Tag}" == $"{rc.Image}") == true)
                        {
                            if (IsIgnoreContainer(rc.Image))
                            {
                                if (farmingSetting.ContainerRemove == FARMING_SETTING_TRUE)
                                {
                                    _logger.LogInformation($"Container Stop & Remove:{rc.Image}");
                                    await containerService.StopAndDeleteContainer(rc.ID);
                                }
                                else
                                {
                                    _logger.LogInformation($"Container Stop :{rc.Image}");
                                    await containerService.StopContainer(rc.ID);
                                }
                            }
                        }
                    }

                    //起動ループ
                    foreach (var targetContainer in containerSettingList.ContainerSettings)
                    {
                        string target_image     = targetContainer.Image;
                        string target_image_tag = targetContainer.Tag;


                        await containerService.StartContainer(targetContainer);
                    }
                }catch (Exception ex)
                {
                    _logger.LogError(ex.ToString());
                }
                await Task.Delay(farmingSetting.WaitTime);
            }
        }
Exemplo n.º 12
0
        /// <inheritdoc />
        public async Task <IEnumerable <T> > GetInstancesAsync <T>(object key)
            where T : class
        {
            if (ContainerService == null ||
                !ContainerService.IsInitialized)
            {
                throw new NullReferenceException("Container service was not initialized.");
            }

            return(await ContainerService.GetInstancesAsync <T>(key));
        }
Exemplo n.º 13
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (ContainerService != null)
     {
         ContainerService.Validate();
     }
     if (ServiceAuthConfiguration != null)
     {
         ServiceAuthConfiguration.Validate();
     }
 }
Exemplo n.º 14
0
 public FaktForm(MainForm mainForm, IIOFaktResult iOFaktResult)
 {
     InitializeComponent();
     Gender.Text = "М";
     InitAddHandlersTB();
     _iOData        = iOFaktResult;
     _loadCalculate = ContainerService.GetInject <LoadCalculateService>();
     FaktResults    = _iOData.GetData();
     _mainForm      = mainForm;
     Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
 }
Exemplo n.º 15
0
            public void DeletingContainer_DeletesDiskQuota()
            {
                Container1 = CreateContainer(Container1Handle);
                Container1.LimitDisk(5000);

                Assert.Equal(5000UL, Container1.CurrentDiskLimit());

                ContainerService.DestroyContainer(Container1Handle);

                Assert.Equal(0UL, Container1.CurrentDiskLimit());
            }
Exemplo n.º 16
0
        /// <inheritdoc />
        public async Task <T> GetInstanceAsync <T>()
            where T : class
        {
            if (ContainerService == null ||
                !ContainerService.IsInitialized)
            {
                throw new NullReferenceException("Container service was not initialized.");
            }

            return(await ContainerService.GetInstanceAsync <T>());
        }
Exemplo n.º 17
0
 public async Task SaveContainer(Container i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new ContainerService())
     {
         await ctx.UpdateContainer(i).ConfigureAwait(false);
     }
 }
        public void Load()
        {
            try
            {
                Client = ContainerService.Resolve <IDelfinServices>();

                ListSubDiarios = Client.GetAllConstantes().Where(CAS => CAS.CONS_CodTabla.Equals("CAS")).ToObservableCollection().OrderBy(cas => cas.CONS_CodTipo).ToObservableCollection();
                LView.LoadView();
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error inicializando la vista.", ex); }
        }
Exemplo n.º 19
0
        static void Main(string[] args)
        {
            var container = ContainerService.GetDiContainer();

            using (var appScope = container.BeginLifetimeScope())
            {
                var app = appScope.Resolve <IApp>();
                app.Run();
            }

            Console.ReadLine();
        }
Exemplo n.º 20
0
        public ContainerAcceptanceTests()
        {
            Container1Handle  = GenerateRandomAlphaString();
            Container2Handle  = GenerateRandomAlphaString();
            ContainerBasePath = CreateTempDirectory();

            UserGroupName    = "ContainerServiceTestsUserGroup_" + GenerateRandomAlphaString();
            UserGroupManager = new LocalUserGroupManager();
            UserGroupManager.CreateLocalGroup(UserGroupName);

            ContainerService = new ContainerService(ContainerBasePath, UserGroupName);
        }
        public ContainerAcceptanceTests()
        {
            Container1Handle = GenerateRandomAlphaString();
            Container2Handle = GenerateRandomAlphaString();
            ContainerBasePath = CreateTempDirectory();

            UserGroupName = "ContainerServiceTestsUserGroup_" + GenerateRandomAlphaString();
            UserGroupManager = new LocalUserGroupManager();
            UserGroupManager.CreateLocalGroup(UserGroupName);

            ContainerService = new ContainerService(ContainerBasePath, UserGroupName);
        }
Exemplo n.º 22
0
 public BlocksCoreBuilder ConfigureServices(Action <IServiceCollection, IServiceProvider> action, int order = 0)
 {
     if (!_actions.TryGetValue(order, out var currentActions))
     {
         currentActions = _actions[order] = new List <Action <IServiceCollection, IServiceProvider> >();
         ContainerService.AddTransient <IModuleStartup>((s) =>
                                                        new SystemModuleStartup(order: order, serviceProvider: s.GetRequiredService <IServiceProvider>(),
                                                                                configureServicesActions: currentActions));
     }
     currentActions.Add(action);
     return(this);
 }
        public void Load()
        {
            try
            {
                Client    = ContainerService.Resolve <IDelfinServices>();
                ItemsNave = new ObservableCollection <Nave>();
                ItemsNave = Client.GetAllNave(null);

                LView.LoadView();
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error inicializando la vista.", ex); }
        }
Exemplo n.º 24
0
 // This method gets called by the runtime. Use this method to add services to the container.
 // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddMvc(o => o.EnableEndpointRouting = false).SetCompatibilityVersion(Microsoft.AspNetCore.Mvc.CompatibilityVersion.Version_3_0);
     services.AddRazorPages();
     //services.AddDbContext<Context>(o => o.UseMySQL(Configuration.GetConnectionString("DefaultConnection")));
     services.AddServerSideBlazor();
     services = ContainerService.AddDataAcces(services);
     services = ContainerService.AddServices(services);
     services = ContainerService.AddModels(services);
     services = AddWebAPI(services);
     services.AddCors(o => {
         o.AddPolicy("CorsPolicy", builder => builder.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
     });
 }
Exemplo n.º 25
0
        private void CreateTestData(IDataStore dataStore)
        {
            ContainerTypeService.CreateTestData(dataStore);

            ContainerService.CreateTestData(dataStore);

            CarService.CreateTestData(dataStore);

            DriverService.CreateTestData(dataStore);

            PolygonService.CreateTestData(dataStore);

            CustomerService.CreateTestData(dataStore);
        }
Exemplo n.º 26
0
        public void Load()
        {
            try
            {
                Client = ContainerService.Resolve <IDelfinServices>();

                ListResultGestion = Client.GetAllResultGestion().Where(resg => resg.RESG_Activo).ToObservableCollection();

                LView.LoadView();
                //MView.LoadView();
            }
            catch (Exception ex)
            { Infrastructure.WinForms.Controls.Dialogos.MostrarMensajeError(Title, "Ha ocurrido un error inicializando la vista.", ex); }
        }
Exemplo n.º 27
0
            public void UpdateContainerService(ContainerService service)
            {
                var containerExists = _containerServices.ContainsKey(service.ContainerId) &&
                                      _containerServices[service.ContainerId].ContainsKey(service.ServiceName);

                if (!containerExists)
                {
                    throw new Exception($"The service {service.ServiceName} in container {service.ContainerId} does not exist or the container is missing.");
                }

                _containerServices[service.ContainerId][service.ServiceName] = service;

                _registrar.OnContainerServiceUpdated(this, new ContainerServiceUpdatedEventArgs(service.ContainerId, service));
            }
Exemplo n.º 28
0
        public void Load()
        {
            try
            {
                Client = ContainerService.Resolve <Delfin.ServiceContracts.IDelfinServices>();

                /* Cargar la series de notas de credito */
                ObservableCollection <Infrastructure.Aspect.DataAccess.DataAccessFilterSQL> _listFilters = new ObservableCollection <Infrastructure.Aspect.DataAccess.DataAccessFilterSQL>();
                _listFilters.Add(new Infrastructure.Aspect.DataAccess.DataAccessFilterSQL()
                {
                    FilterName = "@pchrTIPO_TabTDO", FilterValue = "TDO", FilterType = Infrastructure.Aspect.DataAccess.DataAccessFilterTypes.Char, FilterSize = 3
                });
                _listFilters.Add(new Infrastructure.Aspect.DataAccess.DataAccessFilterSQL()
                {
                    FilterName = "@pchrTIPO_CodTDO", FilterValue = "007", FilterType = Infrastructure.Aspect.DataAccess.DataAccessFilterTypes.Char, FilterSize = 3
                });

                ListSeries = Client.GetAllSeriesFilter("VEN_SERISS_Todos", _listFilters);
                Fecha      = Client.GetFecha();
                ListSeries.Insert(0, new Series()
                {
                    SERI_Serie = "< Sel. Nro de Serie >", SERI_Desc = null
                });

                var     item = Client.GetOneParametrosByClave("IGV");
                decimal igv;
                if (item != null && decimal.TryParse(item.PARA_Valor, out igv))
                {
                    IGV = igv;
                }

                switch (TInicio)
                {
                case TipoInicio.Normal:
                    LView.LoadView();
                    break;

                case TipoInicio.EditarFacturacion:

                    Editar(ItemDocsVta.DOCV_Codigo);
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex)
            { Dialogos.MostrarMensajeError(Title, Mensajes.LoadPresenter, ex); }
        }
Exemplo n.º 29
0
        public void Should_invoke_service_and_return_null_when_container_not_exists()
        {
            var id = 7;
            var containerService = MockContainerService(new List <Container>());

            var sut = new ContainerService(
                containerService.Object
                );

            var result = sut.GetById(id);

            containerService.Verify(x => x.GetById(It.IsAny <long>()), Times.Once);

            result.Result.Should().BeNull();
        }
Exemplo n.º 30
0
        public void Should_invoke_service_and_return_containers()
        {
            var containerService = MockContainerService(Containers);

            var sut = new ContainerService(
                containerService.Object
                );

            var result = sut.Get();

            containerService.Verify(x => x.Get(), Times.Once);

            result.Result.Should().NotBeNull();
            result.Result.Count.Should().Be(6);
        }
Exemplo n.º 31
0
        protected override void ProcessRecord()
        {
            ExecuteClientAction(() =>
            {
                if (ShouldProcess(this.ResourceGroupName, VerbsData.Update))
                {
                    string resourceGroupName    = this.ResourceGroupName;
                    string containerServiceName = this.Name;
                    ContainerService parameters = this.ContainerService;

                    var result = ContainerServicesClient.CreateOrUpdate(resourceGroupName, containerServiceName, parameters);
                    WriteObject(result);
                }
            });
        }
        protected override void ProcessRecord()
        {
            // OrchestratorProfile
            Microsoft.Azure.Management.Compute.Models.ContainerServiceOrchestratorProfile vOrchestratorProfile = null;

            // MasterProfile
            Microsoft.Azure.Management.Compute.Models.ContainerServiceMasterProfile vMasterProfile = null;

            // WindowsProfile
            Microsoft.Azure.Management.Compute.Models.ContainerServiceWindowsProfile vWindowsProfile = null;

            // LinuxProfile
            Microsoft.Azure.Management.Compute.Models.ContainerServiceLinuxProfile vLinuxProfile = null;

            // DiagnosticsProfile
            Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile vDiagnosticsProfile = null;

            if (this.OrchestratorType != null)
            {
                if (vOrchestratorProfile == null)
                {
                    vOrchestratorProfile = new Microsoft.Azure.Management.Compute.Models.ContainerServiceOrchestratorProfile();
                }
                vOrchestratorProfile.OrchestratorType = this.OrchestratorType;
            }

            if (this.MasterCount != null)
            {
                if (vMasterProfile == null)
                {
                    vMasterProfile = new Microsoft.Azure.Management.Compute.Models.ContainerServiceMasterProfile();
                }
                vMasterProfile.Count = this.MasterCount;
            }

            if (this.MasterDnsPrefix != null)
            {
                if (vMasterProfile == null)
                {
                    vMasterProfile = new Microsoft.Azure.Management.Compute.Models.ContainerServiceMasterProfile();
                }
                vMasterProfile.DnsPrefix = this.MasterDnsPrefix;
            }

            if (this.WindowsProfileAdminUsername != null)
            {
                if (vWindowsProfile == null)
                {
                    vWindowsProfile = new Microsoft.Azure.Management.Compute.Models.ContainerServiceWindowsProfile();
                }
                vWindowsProfile.AdminUsername = this.WindowsProfileAdminUsername;
            }

            if (this.WindowsProfileAdminPassword != null)
            {
                if (vWindowsProfile == null)
                {
                    vWindowsProfile = new Microsoft.Azure.Management.Compute.Models.ContainerServiceWindowsProfile();
                }
                vWindowsProfile.AdminPassword = this.WindowsProfileAdminPassword;
            }

            if (this.AdminUsername != null)
            {
                if (vLinuxProfile == null)
                {
                    vLinuxProfile = new Microsoft.Azure.Management.Compute.Models.ContainerServiceLinuxProfile();
                }
                vLinuxProfile.AdminUsername = this.AdminUsername;
            }


            if (this.SshPublicKey != null)
            {
                if (vLinuxProfile == null)
                {
                    vLinuxProfile = new Microsoft.Azure.Management.Compute.Models.ContainerServiceLinuxProfile();
                }
                if (vLinuxProfile.Ssh == null)
                {
                    vLinuxProfile.Ssh = new Microsoft.Azure.Management.Compute.Models.ContainerServiceSshConfiguration();
                }
                if (vLinuxProfile.Ssh.PublicKeys == null)
                {
                    vLinuxProfile.Ssh.PublicKeys = new List<Microsoft.Azure.Management.Compute.Models.ContainerServiceSshPublicKey>();
                }
                foreach (var element in this.SshPublicKey)
                {
                    var vPublicKeys = new Microsoft.Azure.Management.Compute.Models.ContainerServiceSshPublicKey();
                    vPublicKeys.KeyData = element;
                    vLinuxProfile.Ssh.PublicKeys.Add(vPublicKeys);
                }
            }

            if (this.VmDiagnosticsEnabled != null)
            {
                if (vDiagnosticsProfile == null)
                {
                    vDiagnosticsProfile = new Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile();
                }
                if (vDiagnosticsProfile.VmDiagnostics == null)
                {
                    vDiagnosticsProfile.VmDiagnostics = new Microsoft.Azure.Management.Compute.Models.ContainerServiceVMDiagnostics();
                }
                vDiagnosticsProfile.VmDiagnostics.Enabled = this.VmDiagnosticsEnabled;
            }


            var vContainerService = new ContainerService
            {
                Location = this.Location,
                Tags = (this.Tag == null) ? null : this.Tag.Cast<DictionaryEntry>().ToDictionary(ht => (string)ht.Key, ht => (string)ht.Value),
                AgentPoolProfiles = this.AgentPoolProfile,
                OrchestratorProfile = vOrchestratorProfile,
                MasterProfile = vMasterProfile,
                WindowsProfile = vWindowsProfile,
                LinuxProfile = vLinuxProfile,
                DiagnosticsProfile = vDiagnosticsProfile,
            };

            WriteObject(vContainerService);
        }
        protected PSArgument[] CreateContainerServiceCreateOrUpdateParameters()
        {
            string resourceGroupName = string.Empty;
            string containerServiceName = string.Empty;
            ContainerService parameters = new ContainerService();

            return ConvertFromObjectsToArguments(
                 new string[] { "ResourceGroupName", "ContainerServiceName", "Parameters" },
                 new object[] { resourceGroupName, containerServiceName, parameters });
        }
Exemplo n.º 34
0
 public ServiceInstance(object instance, ContainerService containerService)
 {
     Instance = instance;
     ContainerService = containerService;
 }