コード例 #1
0
        /// <summary>
        /// Add the endpoint for the checkin event to the host.
        /// </summary>
        /// <param name="host"></param>
        /// <param name="binding"></param>
        private void AddHostEndpoint(NotificationServiceHost <T> host)
        {
            BasicHttpBinding binding = CreateHostBinding();

            ServiceEndpoint endPoint = host.AddServiceEndpoint(
                typeof(INotificationService),
                binding,
                typeof(T).Name
                );
        }