Exemple #1
0
    private void CreateFrontend()
    {
        if (arrService.Frontend != null)
        {
            // early out if the front-end has been created before
            return;
        }

        // initialize the ARR service with our account details
        AzureFrontendAccountInfo accountInfo = new AzureFrontendAccountInfo();

        accountInfo.AccountKey    = AccountKey;
        accountInfo.AccountId     = AccountId;
        accountInfo.AccountDomain = AccountDomain;

        arrService.Initialize(accountInfo);
    }
    private void CreateFrontend()
    {
        if (arrService.Frontend != null)
        {
            // early out if the front-end has been created before
            return;
        }

        // initialize the ARR service with our account details.
        // Trim the strings in case they have been pasted into the inspector with trailing whitespaces
        AzureFrontendAccountInfo accountInfo = new AzureFrontendAccountInfo();

        accountInfo.AccountKey    = AccountKey.Trim();
        accountInfo.AccountId     = AccountId.Trim();
        accountInfo.AccountDomain = AccountDomain.Trim();

        arrService.Initialize(accountInfo);
    }