TAILIEUCHUNG - Programming C# 2nd Edition phần 8

Khi hai hội đồng có số lượng lớn hoặc nhỏ khác nhau, họ được coi là không tương thích. Khi họ có khác nhau xây dựng số, họ có thể hoặc có thể không tương thích, và khi họ có số sửa đổi khác nhau, họ được coi là chắc chắn tương thích với nhau. | Programming C 2nd Edition When two assemblies have different major or minor numbers they are considered to be incompatible. When they have different build numbers they might or might not be compatible and when they have different revision numbers they are considered definitely compatible with each other. Revision numbers are intended for bug fixes. If you fix a bug and are prepared to certify that your DLL is fully backward-compatible with the existing version you should increment the revision. When an application loads an assembly it specifies the major and minor version that it wants and the AssemblyResoiverfinds the highest build and revision numbers. Strong Names In order to use a shared assembly you must meet three requirements You need to be able to specify the exact assembly you want to load. Therefore you need a globally unique name for the shared assembly. You need to ensure that the assembly has not been tampered with. That is you need a digital signature for the assembly when it is built. You need to ensure that the assembly you are loading is the one authored by the actual creator of the assembly. You therefore need to record the identity of the originator. All these requirements are met by strong names. Strong names must be globally unique and use public key encryption to ensure that the assembly hasn t been tampered with and was written by the creator. A strong name is a string of hexadecimal digits and is not meant to be human-readable. To create a strong name a public-private key pair is generated for the assembly. A hash is taken of the names and contents of the files in the assembly. The hash is then encrypted with the private key for the assembly and placed in the manifest. This is known as signing the assembly. The public key is incorporated into the strong name of the assembly. Public Key Encryption Strong names are based on public key encryption technology. The essence of public key encryption is that your data is encoded with a complex

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.