ResourceManagerRepository CreateRepository()
    {
        var armClient = new ArmClientFactory(() => Task.FromResult(managementAuthToken), managementAuthToken);
        var logger    = new LoggerFactory().CreateLogger <ResourceManagerRepository>();
        var opts      = new ArmOptions
        {
            TemplateStreamAnalyticsUrl = armTemplateStreamAnalyticsUrl,
            TemplateUrl = armTemplateUrl
        };

        return(new ResourceManagerRepository(Options.Create(opts), armClient, logger));
    }
Beispiel #2
0
    public Material GetCurrentSelection(ArmOptions armOption)
    {
        switch (armOption)
        {
        case ArmOptions.RightArmFront:
            return(rightArmFrontOptions[currentRightArmFrontOption]);

        case ArmOptions.RightArmMain:
            return(rightArmMainOptions[currentRightArmMainOption]);

        case ArmOptions.LeftArmFront:
            return(leftArmFrontOptions[currentLeftArmFrontOption]);

        case ArmOptions.LeftArmMain:
            return(leftArmMainOptions[currentLeftArmMainOption]);

        default:
            return(leftArmMainOptions[currentLeftArmMainOption]);
        }
    }