コード例 #1
0
        /// <summary>
        /// Registers all the notifications that are provided by the current application.
        /// </summary>
        public void RegisterProvidedNotifications()
        {
            var instance = m_Context.Resolve <TestNotifications>();

            var map = NotificationMapper <ITestNotificationSet> .Create();

            instance.OnNotify += map.From(t => t.OnNotify += null)
                                 .GenerateHandler();

            var collection = m_Context.Resolve <RegisterNotification>();

            collection(map.ToMap(), m_Subjects.Select(s => new SubjectGroupIdentifier(s, new Version(1, 0), "a")).ToArray());
        }