Silverlight 3’s New and Improved Duplex Networking

One of the many cool features added to the run-time in Silverlight 2 was support for WCF duplex services. That support allowed Silverlight clients to connect to duplex services and receive asynchronous callbacks through a callback channel. This made it possible to write Silverlight apps that, for example, update stock prices in near real time as the prices change on the server without explicitly polling for the data. (Polling is happening down in the network layer, but that’s abstracted out of the programming model.)

Unfortunately, writing a duplex client in Silverlight 2 was messy. One reason was that you had to write a boatload of code to connect to the service and service the callback channel. Another was that there was no built-in serialization support for method parameters, so all data transfer was Message-based.

Silverlight 3 dramatically improved the duplex client story by introducing strongly typed proxies for duplex services. The result? You can now write a complete duplex client with as little as 10 lines of code. You simply use Visual Studio’s “Add Service Reference” command (or the command-line equivalent, SlSvcUtil.exe, also new in Silverlight 3) to generate a proxy for the duplex service and then use it as you would any other Web service proxy–method parameters and all. As a bonus, the proxy notifies the client that a callback has been received on the UI thread, so there’s no longer any need to marshal off a thread-pool thread as there was in Silverlight 2.

To demonstrate, I updated a Silverlight 2 client I wrote last year to use the new duplex infrastructure in Silverlight 3. Here’s what the client looks like:

DuplexDemo

It’s a national debt clock. It updates approximately every 5 seconds to show you the current national debt. (Yes, it’s a depressing application.) At startup, it fires off a call to connect to a WCF duplex service named DebtService.svc. Then it updates its display in response to data pushed down to it by the service every few seconds.

You can try the application for yourself by clicking here. Or you can download the source code here. The source code includes the WCF DebtService, which implements a simple contract named IDuplexService and uses a timer as a trigger for callbacks. It also includes the Silverlight client, which connects to the service through a proxy and registers a handler for RefreshReceived events fired when fresh data arrives from the service. The entire client boils down to little more than this:

_proxy = new DuplexServiceClient(binding, address);

_proxy.RefreshReceived +=

    new EventHandler<RefreshReceivedEventArgs>(OnRefreshReceived);

_proxy.ConnectAsync();

void OnRefreshReceived(object sender, RefreshReceivedEventArgs e)

{

    // Update the display

}

In case you wondered, the debt figures displayed by the application are roughly accurate but not exact. My service uses a simple formula to compute the national debt–a formula that’s based on numbers from the Bush administration. I simply don’t have the heart to update the formula to account for Washington’s latest spending spree. Still, the figures should be accurate to within a trillion or two. And what’s a trillion bucks between friends?

Atmosera Enterprise Cloud Security and Compliance Adoption Increases as Market Favors Cloud-Based Solutions

Higher Use of Public Cloud Services, Evolving Regulatory Requirements, and Dynamic Computing Models Are Driving Demand for Cloud Security & Compliance

Read Press Release

News Summary

PORTLAND, OR — March 21, 2018 — Atmosera, a premier Tier-I Microsoft Cloud Solution Provider (CSP) and one of CRN’s 2018 MSP Managed Security 100, today announced increasing adoption of its cloud security and compliance solutions as companies gravitate toward cloud-based environments for their mission critical applications. The governance and security of modern IT environments is increasingly lacking for on-premise environments which is creating a coverage gap. As a result, the demand for cloud-based alternatives from CSPs like Atmosera is on the rise.

According to Gartner, “The cloud-based security services market will reach close to $9 billion by 2020… Increasing security threats, operational and cost benefits and staffing pressures drive market growth.”(1) Furthermore, the market research firm stated, “SIEM, IAM and emerging technologies are the fastest growing cloud-based security services segments.”

“Cloud security processes and tools enable organizations to maintain security and control, while complying with regulatory and contractual requirements,” analysts wrote in a Gartner report. “Organizations that take a strategic approach to the selection and ongoing management of their CSPs are saving money and taking better advantage of the expanding set of cloud services, while still maintaining security, auditability and regulatory compliance.”(2)

“Companies are under pressure to implement a better Information Security posture to preserve the integrity of their data and applications which are critical to their business success,” said Ray Espinoza, Vice President of Information Security & Chief Information Security Officer (CISO), Atmosera. “Staying abreast of all possible IT-related threats, and the means to counter them, has become paramount for any company and not just those who are in regulated industries such as healthcare and financial services. We have a deep understanding of enterprise-level cloud security and continue to rapidly evolve our services to stay on top of the evolving threat landscape and ensure our customers have the best possible solution.”

As noted in the Cloud Security Primer for 2018 by Gartner, “All IT professionals regularly confront a common set of cloud computing dynamics: An irresistible demand for higher use of public cloud services; changing expectations for the level and form of cloud control; an evolving regulatory regime; highly dynamic computing models that complicate visibility and policy enforcement; and a lack of consensus on risk assessment, security and governance best practices.”(3)

Atmosera answers these concerns with enterprise-class security and compliance solutions that ensure cloud deployments are protected against the rise of increasingly sophisticated security threats. The company’s proven approach to securing mission critical cloud environments ensures that potential risks are identified and trigger immediate mitigation. With Atmosera, companies using the Microsoft Cloud Platform and Azure can feel protected against commonly encountered threats, including malware, phishing, SQL injection attacks, cross-site scripting (XSS), Denial-of-Service (DoS), session hijacking, man-in-the-middle attacks, credential reuse, ransomware, and more.

With more than two decades of experience securing hosting and cloud customer environments, Atmosera has over 200 customers across a number of industries including over 30% in highly regulated environments needing to comply with HIPAA/HITECH, HITRUST, PCI-DSS and IRS-1075. Customers select Atmosera for the CSP’s ability to right size cloud security for their operations. Atmosera’s expertise comes from the ability to offer flexible InfoSec and compliance frameworks that best meet the unique demands of each customer.

To learn more about Atmosera Security and Compliance, please visit: https://www.atmosera.com/atmosera-brings-enterprise-class-security-compliance/

Tweet This: @Atmosera Security and Compliance Adoption Rises as Enterprises Shift To Cloud Solutions http://bit.ly/2s2gptO #Compliance #InfoSec

Resources:
– Contact Atmosera today at: https://www.atmosera.com/contact/
– Follow Atmosera on Twitter at: https://twitter.com/atmosera
– Follow Atmosera on LinkedIn at: https://www.linkedin.com/company/atmosera
– Learn more about how Atmosera’s Information Security and Compliance services https://www.atmosera.com/security-and-compliance/
– Read the National Paycard Provider case study https://www.atmosera.com/Solutions/safeguard-sensitive-cardholder-data-and-stay-compliant/
– Read the Telephony Health Services Provider case study https://www.atmosera.com/improve-telephony-behavioral-health-services/
– Read the Coordinated Care Organization case study https://www.atmosera.com/achieving-a-healthy-data-warehouse/

(1) Gartner Press Release, Gartner Forecasts Worldwide Cloud-Based Security Services to Grow 21 Percent in 2017, June 13, 2017, https://www.gartner.com/newsroom/id/3744617
(2) Gartner, “Cloud Security Primer for 2018”, Jay Heiser, January 17, 2018, https://www.gartner.com/doc/3846464
(3) Gartner, “Cloud Security Primer for 2018”, Jay Heiser, January 17, 2018, https://www.gartner.com/doc/3846464

About Atmosera
With over 20 years of industry experience, Atmosera is a leading provider of business-class Microsoft cloud managed services. Award-winning Atmosera Managed Azure Services simplify the process of transitioning from legacy three-tier IT architecture to the Microsoft Cloud Platform for improved IT transparency, security, and trust. Atmosera is a 100% focused on Microsoft and is a Gold Level Tier 1 CSP with Microsoft COSN and Azure Certified for Hybrid designations. With hundreds of customers worldwide, Atmosera service capabilities span the globe and reach across every business sector. To learn more about Atmosera Managed Azure Services, please visit https://www.atmosera.com/managed-azure/ or call +1.800.903.4852.

– END –

Contact Atmosera
+1.503.222.2202 or +1.800.903.4852 | marketing@atmosera.com

We deliver solutions that accelerate the value of Azure.

Ready to experience the full power of Microsoft Azure?

Start Today

Blog Home

Stay Connected

Upcoming Events

All Events