目前分類:.NET Framework (9)

瀏覽方式: 標題列表 簡短摘要

今天有朋友問我這個問題,我當下只有想到利用 Registry 或是找個地方暫存資料,Windows Service 跟 Windows Form Application 再去讀取及寫入

印象中有有 IPC (interprocess communications)的方式,但在 C# 又是如何做?

找到了兩篇文章

Interprocess Communication using Named Pipes in C#

Inter-Process Communication in .NET Using Named Pipes, Part 1

Enjoy.

anISV 發表在 痞客邦 留言(1) 人氣()

無廢話.. 請看下列範例 … 請注意第二種寫法


namespace StringArrayContainsSample
{
    using System;
    using System.Collections.Generic;
    using System.Linq;

    class Program
    {
        static void Main(string[] args)
        {
            string[] s = new string[3] { "A01", "B01", "C01" };
            string expected = "B01";

            //// 第一種寫法
            foreach (var item in s)
            {
                if (item == expected)
                    Console.WriteLine("方法一找到相符資料!!");
            }

            //// 第二種寫法
            if (((IList<string>)s).Contains(expected))
                Console.WriteLine("方法二找到相符資料!!");

            //// 第三種寫法. (using System.Linq)
            //// Thanks for Darkthread's sharing.
            if (s.Contains(expected))
                Console.WriteLine("方法三找到相符資料!!");

            Console.ReadLine();
        }
    }
}

anISV 發表在 痞客邦 留言(2) 人氣()

The .NET Framework 4 includes extended support for writing parallel applications, through enhancements to the CLR itself as well as through new libraries commonly referred to as "Parallel Extensions to the .NET Framework." The set of articles available in this download provides detailed information on Parallel Extension, including the Task Parallel Library (TPL), Parallel LINQ (PLINQ), and a set of new coordination primitives and thread-safe data structures. These articles provide insights into performance characteristics, usage patterns, best practices, integration of parallelism with other programming frameworks, and more.

 

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3ea8fb5-650d-434b-a216-7e54c53965d1

 

Enjoy.

anISV 發表在 痞客邦 留言(0) 人氣()

The Windows Identity Foundation SDK provides templates for use with Visual Studio and code samples. This download requires the Windows Identity Foundation runtime be present.

 

Downlaod:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c148b2df-c7af-46bb-9162-2c9422208504

anISV 發表在 痞客邦 留言(2) 人氣()

Microsoft’s identity and access solution includes:

  • Windows Identity Foundation for .NET developers,
  • Active Directory Federation Services 2.0 for IT Pros, and
  • Windows CardSpace 2.0 for users.

 

Download:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=9ca5c685-3172-4d8f-81cb-1a59bdc9f7e3

anISV 發表在 痞客邦 留言(0) 人氣()

For Windows 7 and Windows Server 2008 R2

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=79d7f6f8-d6e9-4b8c-8640-17f89452148e

 

For Windows 2000, Windows Server 2003, Windows XP, Windows Vista and Windows Server 2008

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=4b710b89-8576-46cf-a4bf-331a9306d555

 

Enjoy.

anISV 發表在 痞客邦 留言(0) 人氣()

    Windows Server AppFabric is a set of integrated technologies that make it easier to build, scale and manage Web and composite applications that run on IIS. Windows Server AppFabric targets applications built using ASP.NET, Windows Communication Foundation (WCF), and Windows Workflow Foundation (WF).


    It provides out-of-the-box capabilities for you to easily build and manage composite applications, including:
    • Enhanced design and development tools in Visual Studio to build rich composite applications
    • Management and monitoring of sevices and workflows via integration with IIS Manager and Windows PowerShell
    • Distributed in-memory application cache to improve application performance


    Windows Server AppFabric Beta 1 is available now for developers to start building their next-generation composite applications, and for administrators to host and manage them. It integrates technologies previewed as code name "Dublin" and code name "Velocity".

Download:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=0bd0b14f-d112-4f11-94bf-90b489622edd

anISV 發表在 痞客邦 留言(0) 人氣()

Active Directory Federation Services 2.0, Windows Identity Foundation & Windows CardSpace comprise an identity & access solution to help developers and IT professionals simplify access to applications and other systems with an open claims-based model. Windows Identity Foundation helps simplify user access for developers by externalizing user access from applications via claims and reducing development effort with pre-built security logic and integrated .NET tools. Active Directory Federation Services 2.0 helps IT efficiently deploy and manage new applications by reducing custom implementation work, helping establish a consistent security model, and facilitating seamless collaboration between organizations with automated federation tools. Users can benefit from help navigating logins and controlling information sharing, using Windows CardSpace 2.0. The platform includes built-in interoperability via open industry standards and claims, and implements the industry Identity Metasystem vision for open and interoperable identity.
 
Microsoft’s identity and access solution includes:
 
  • Windows Identity Foundation for .NET developers,
  • Active Directory Federation Services 2.0 for IT Pros, and
  • Windows CardSpace 2.0 for users.

 
Available Here for Download
Datasheet - Updated for Beta 2
 
Whitepaper: Claims Based Access Platform
Learn about Microsoft’s claims-based identity and access solution. Read about Windows Identity Foundation, Active Directory Federation Services 2.0 and Windows CardSpace, and how they work together to help solve application access problems with a single simplified access model. Understand how claims can be used across a wide variety of scenarios including enterprise, federation and Web. In this paper new concepts and terminology are introduced to help architects, developers and IT professionals understand the benefits and concepts behind the claims-based model of identity. A background in developing, deploying or managing web applications and services that entail user authentication is expected. By David Chappell
 
Whitepaper: Windows Identity Foundation - Updated for WIF RTW
Get started building claims-aware applications using Windows Identity Foundation. In this paper concepts and terminology are introduced to help developers understand the benefits and concepts behind the claims-based model of identity. Security expertise is not required but familiarity with ASP.NET or WCF programming is. A background in building web applications or services that care about authentication and authorization is expected. As such, the focus of the paper is on building relying parties using the framework. By Keith Brown
 
Whitepaper: Windows Identity Foundation - Changes between Beta 2 and RTW
Get an overview of what are the new features added in release candidate (RC) of Windows Identity Foundation. For users of Windows Identity Foundation Beta-2 this document is a great resource that highlights the changes happened to the features existed in Beta-2.
 
Download:

anISV 發表在 痞客邦 留言(0) 人氣()

The Windows Presentation Foundation (WPF) Plug-in for Firefox and the .NET Framework Assistant enable XAML browser applications (XBAPs), loose XAML, and ClickOnce applications to work with the Firefox browser.

 

The .NET Framework Assistant for Firefox enables ClickOnce standalone applications to run from the Firefox browser. The .NET Framework Assistant functions identically when installed before and after the Firefox broswer. When the Firefox browser is launched and the .NET Framework Assistant is present, Firefox finds and installs the add-on. Users can configure the assistant to do the following:

  • Prompt before running the application.

  • Report all installed versions of the .NET Framework or just the latest version.

The .NET Framework Assistant is installed with the .NET Framework version 3.5 Service Pack 1.

 

In .NET Framework 3.5 SP1, the .NET Framework Assistant enables Firefox to use the ClickOnce technology that is included in the .NET Framework. The .NET Framework Assistant is added at the machine-level to enable its functionality for all users on the machine. As a result, the Uninstall button is shown as unavailable in the Firefox Add-ons list because standard users are not permitted to uninstall machine-level components. In this update for .NET Framework 3.5 SP1 and in Windows 7, the .NET Framework Assistant will be installed on a per-user basis. As a result, the Uninstall button will be functional in the Firefox Add-ons list. This update will also make this version of the .NET Framework Assistant for Firefox compatible with future versions of the Firefox browser. Updates to the .NET Framework Assistant may include updates to the Windows Presentation Foundation Plug-in for Firefox causing it to be enabled upon its initial update.

 

下載位置

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=cecc62dc-96a7-4657-af91-6383ba034eab

anISV 發表在 痞客邦 留言(0) 人氣()