Windows Server AppFabric 使用

來源:互聯網
上載者:User

Windows Server AppFabric 是一組整合技術,可更輕鬆地產生、擴充和管理 IIS 上啟動並執行 Web 應用程式和複合應用程式。Windows Server AppFabric 適用於使用 ASP.NET、Windows Communication Foundation (WCF) 和 Windows Workflow Foundation (WF) 產生的應用程式。

為您輕鬆產生和管理複合應用程式提供了全新功能,包括: Visual Studio 中增強設計和開發工具,可產生功能強大的複合應用程式通過與 IIS Manager 和 Windows PowerShell 的整合來管理和監控服務和工作流程分布式記憶體中應用程式緩衝,可改善應用程式效能

使用 Windows Server AppFabric,開發人員可以產生其下一代複合應用程式,管理員可以託管和管理這些應用程式。同時整合了以代碼名稱“Dublin”和代碼名稱“Velocity”預發布的技術。

1. Install AppFabric from

http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID=467e5aa5-c25b-4c80-a6d2-9f8fb0f337d2


 

2. Set up monitoring

 
3.config monitoring db

 
4.


5.

6. set up Caching Service

7.


8. 配置完之後, 還需要使用PowerSehll AppFabric Cache 管理工具

Use-CacheCluster

Grant-CacheAllowedClientAccount domain\username

New-Cache "cachename"

Start-CacheCluster

9. 代碼:

            DataCacheServerEndpoint[] servers = new DataCacheServerEndpoint[1];
            servers[0] = new DataCacheServerEndpoint("HostName", 22233);

            // Setup the DataCacheFactory configuration.
            DataCacheFactoryConfiguration factoryConfig = new DataCacheFactoryConfiguration();
            factoryConfig.Servers = servers;

            // Create a configured DataCacheFactory object.
            DataCacheFactory mycacheFactory = new DataCacheFactory(factoryConfig);

            // Get a cache client for the cache "NamedCache1".
            DataCache myDefaultCache = mycacheFactory.GetCache("CacheName");
            myDefaultCache.Add("tt", "vvvv");
            v = myDefaultCache.Get("tt");

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.