Ticket T553861
Visible to All Users
Duplicate

Questions on configuring end point bindings when using the security system with a data store level cache

created 7 years ago

[DevExpress Support Team: CLONED FROM T381322: Security - How to reduce the number of permission requests and improve overall performance]
Hello,

When i create the public static System.ServiceModel.Channels.Binding CreateDefaultBinding() { NetTcpBinding binding = new NetTcpBinding();How can i use this binding when using the code below ?

public class CustomObjectSpaceProvider : SecuredObjectSpaceProvider

protected override IDataLayer CreateDataLayer(IDataStore workingDataStore)
            {
                var node = workingDataStore as DataCacheNode;
                if (node == null) return new ThreadSafeDataLayer(XPDictionary, workingDataStore);
                if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["TotalMemoryPurgeThreshold"]))
                {
                    node.TotalMemoryPurgeThreshold = Convert.ToInt64(ConfigurationManager.AppSettings["TotalMemoryPurgeThreshold"]);
                }
                return new ThreadSafeDataLayer(XPDictionary, node);
            }

Answers approved by DevExpress Support

created 7 years ago

Hello,

If I understand you correctly, you have a WCF data caching service and want to customize the endpoint binding on the client side. If so, you can use a solution I described at How to connect SecuredObjectSpaceProvider to a cached WCF data store service and configure BasicHttpBinding in code.

If you elaborate more on your application schema, ultimate goal and why you need to use caching and customize it this way, it is possible that I can provide even better options for you.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.