Ejemplo n.º 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);
    }
Ejemplo n.º 3
0
    private void CreateFrontend()
    {
        if (arrService.Client != 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 whitespace
        SessionConfiguration sessionConfiguration = new SessionConfiguration();

        sessionConfiguration.AccountKey            = AccountKey.Trim();
        sessionConfiguration.AccountId             = AccountId.Trim();
        sessionConfiguration.RemoteRenderingDomain = RemoteRenderingDomain.Trim();
        sessionConfiguration.AccountDomain         = AccountDomain.Trim();

        arrService.Initialize(sessionConfiguration);
    }