appfabric

Appfabric WF4-WCF services, how to retrieve current url in codeactivity without httpcontext?

99封情书 提交于 2019-12-22 09:05:14
问题 I have developed a wf-wcf services with a code activity and in it I want to retrieve the current URL of the service. If I'm disabling the persistence feature of appfabric I can retrieve the URL using HttpContext.Current.Request.Url.ToString() If the persistence feature is enabled then the httpcontext is null. Is there a different way to retrieve the URL of the WCF that hosts my code activity? 回答1: You need to implment IReceiveMessageCallback and add that to an activity's context. In the

AppFabric Cache concurrency issue?

[亡魂溺海] 提交于 2019-12-20 23:47:21
问题 While stress testing prototype of our brand new primary system, I run into concurrent issue with AppFabric Cache. When concurrently calling many DataCache.Get() and Put() with same cacheKey, where I attempt to store relatively large objet, I recieve "ErrorCode:SubStatus:There is a temporary failure. Please retry later." It is reproducible by the following code: var dcfc = new DataCacheFactoryConfiguration { Servers = new[] {new DataCacheServerEndpoint("localhost", 22233)}, SecurityProperties

How to pass required claims to OpenID identity provider with Azure ACS?

为君一笑 提交于 2019-12-20 11:13:11
问题 When looking at the request urls that Azure ACS generates I can see that ACS includes email, fullname, firstname and lastname as required claims. Further, the fullname attribute is mapped to the http://axschema.org/namePerson claim type. Now I have added MyOpenID as an Identity Provider. MyOpenID does not recognize the axschema claim, but I have successfully retrieved http://schema.openid.net/namePerson from MyOpenID. The problem is though, even if I add the http://schema.openid.net

How to design an ASP.NET MVC site for caching with Velocity?

雨燕双飞 提交于 2019-12-20 09:25:12
问题 I'm coming from the LAMP world, where the "cache everything" mentality is prevalent. Everything is put in memcache. I'm starting a new project with ASP.NET MVC and SQL Server. I'll probably go with LINQ to SQL or maybe Entity Framework. Are there design decisions I need to make now for caching, or is it easy enough to start using Velocity if that becomes necessary? Just to be clear, I'm talking about Microsoft's Velocity cache and not the Apache Velocity template engine. I'm hoping that I can

AppFabric client Virtual Machine issue

*爱你&永不变心* 提交于 2019-12-20 04:19:27
问题 we have AppFabric cache cluster server and I can work with it using my dev machine as client. In order to simulate different web servers accessing the cache cluster server, I created a VMWare Virtual Machine and installed Visual Studio 2010 and my web application. From the VM as client, when I try to get cache, I get the following error... Please help.. thanks.. ErrorCode:SubStatus:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which

NHibernate 2nd level caching with AppFabric

若如初见. 提交于 2019-12-18 17:03:03
问题 Has anyone used AppFabric for their second level caching? I know it's to follow the same api as for Velocity (nhibernate.caches.velocity) but wanted to know if anyone already had some production experience of using it and if they knew of any particular tips or problems? 回答1: The only problem I'm currently aware of is what was covered in this question, that the references in the Velocity cache code are out of date and need updating to the AppFabric v1 release assemblies. 回答2: I haven't used

How to set Windows Server AppFabric named cache size?

两盒软妹~` 提交于 2019-12-13 02:43:27
问题 I'm currently evaluating Windows Server AppFabric as a distributed cache solution. If we implement AppFabric, we'd have something like 3 or 4 different web applications using it for caching. I've seen that AppFabric provides the ability to created named caches. I'm wondering if it's possible to set a max size on on a named cache? It looks like you can set a max. memory size for a cache cluster host but I haven't seen anything to indicate that this can be done on a per cache basis. The reason

Any distributed cache systems that allows for tagging content?

旧时模样 提交于 2019-12-12 11:10:11
问题 I'd like to know if there is any distributed cache systems like memcached, velocity or sharedcache that allows me to tag content with more than just it's name, or that can relate items to eachother, so if i invalidate the cache for one item it also invalidates the related items too. eg. if i have two pages that reference the same data and that data changes, i'd like the cache for the two referencing pages to invalidate. or is this an addition to one of those projects begging to be developed?

How can I access the workflow ID in BeginOnSave / PersistenceIOParticipant?

試著忘記壹切 提交于 2019-12-12 05:49:23
问题 I'm using PersistenceIOParticipant to write the workflow status to a custom db table. I need the workflow ID - any ideas how I can access it from within BeginOnSave? 回答1: As far as I know the only way is to retreive it in a activity from the execution context and pass that to your service. 来源: https://stackoverflow.com/questions/11051774/how-can-i-access-the-workflow-id-in-beginonsave-persistenceioparticipant

Cache Host config in Azure In-Role caching

情到浓时终转凉″ 提交于 2019-12-11 19:59:14
问题 Accordingly to this MSDN article (on AppFabric Caching, which is what Azure is run on), I should be able to find a DistributedCacheService.exe.config file located at \Windows\System32\AppFabric , but it doesn't exist on any of the instances. When remoting into one of the instances and searching for configs, I find several cache-related config files in E:\plugins\Caching . The CacheService.config.exe file looks very promising (similar to DistributedCacheService .exe.config ), except that the