Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align CSOM throttling setting with MS recommendations, open up API #849

Closed
SubPointSupport opened this issue Jun 21, 2016 · 1 comment
Closed

Comments

@SubPointSupport
Copy link
Contributor

As per the community feedback:
https://www.yammer.com/spmeta2feedback/#/threads/show?threadId=725945901&messageId=725945901

@SubPointSupport
Copy link
Contributor Author

Implemented.

 public DefaultClientRuntimeContextService()
        {
            // changes as per Microsoft recommendations
            // https://msdn.microsoft.com/en-us/library/office/dn889829.aspx?f=255&MSPPError=-2147217396#BKMK_Bestpracticestohandlethrottling
            // https://github.com/SubPointSolutions/spmeta2/issues/849
            // https://www.yammer.com/spmeta2feedback/#/threads/show?threadId=725945901&messageId=725945901

            // 5 re-try, 30 sec each and x2 backoff multiplier 

            ExecuteQueryDelayInMilliseconds = 30000;

            ExecuteQueryRetryAttempts = 5;
            ExecuteQueryRetryDelayMultiplier = 2;

            InitAllowedStatusCodes();
            InitAllowedIISResetSocketStatusCodes();
        }

ExecuteQueryWithTrace() methods used either ClientRuntimeContextServiceBase from the service container or DefaultClientRuntimeContextService in case no instancies were found inthe service container.

CSOMProvisionService constructor ensures that context service is registered fro CSOM:

ServiceContainer.Instance.RegisterService(typeof(ClientRuntimeContextServiceBase), new DefaultClientRuntimeContextService());

In case you need customizations, use the following property to access or change the default service:
ServiceContainer.Instance.Services <- it's a dictionary where will be an instance of DefaultClientRuntimeContextService

SubPointSupport added a commit that referenced this issue Jun 22, 2016
…849

+ provisioner runner checks URLs collection
+ NCrunch grid nodes DSC configuration
SubPointSupport added a commit that referenced this issue Jun 22, 2016
…mmended

+ Align CSOM throttling setting with MS recommendations, open up API #849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant