GetTask() public méthode

public GetTask ( string name ) : TaskSettings
name string
Résultat TaskSettings
        public M201602102132_CreateVPC(MigrationContext context)
        {
            if (context == null) throw new ArgumentNullException(nameof(context));

            _context = context;
            _client = CreateClient();
            _cluster = _context.Settings.Cluster;
            _task = _cluster.GetTask("web");
        }
        public M201602102135_CreateEC2WebLoadBalancer(MigrationContext context)
        {
            if (context == null) throw new ArgumentNullException(nameof(context));

            _context = context;
            _client = CreateClient();
            _ec2client = CreateEc2Client();
            _cluster = _context.Settings.Cluster;
            _task = _cluster.GetTask("web");
        }