コード例 #1
0
        // Cleanup
        /// <summary>
        /// Delete the query backing event stream
        /// </summary>
        public async Task Delete()
        {
            EventStream esQry = new EventStream(new EventStreamAttribute(MakeDomainQueryName(DomainName),
                                                                         QueryName,
                                                                         UniqueIdentifier,
                                                                         notificationDispatcherName: _queryDispatcherName),
                                                context: _queryContext);

            if (esQry != null)
            {
                await esQry.DeleteStream();
            }
        }
コード例 #2
0
        /// <summary>
        /// Delete the command backing event stream
        /// </summary>
        public async Task Delete()
        {
            EventStream esCmd = new EventStream(new EventStreamAttribute(MakeDomainCommandName(DomainName),
                                                                         CommandName,
                                                                         UniqueIdentifier,
                                                                         notificationDispatcherName: _commandDispatcherName),
                                                context: _commandContext);

            if (esCmd != null)
            {
                await esCmd.DeleteStream();
            }
        }