示例#1
0
        /// <summary>
        /// Associate a handler with a particular message type
        /// </summary>
        /// <param name="family">the type of message to be handled</param>
        /// <param name="messageHandler">the handler function itself</param>
        public MessageHandler(MessageFamily family, Handler messageHandler)
        {
            DbcUtil.requireNotNull(family, "family");
            DbcUtil.requireNotNull(messageHandler, "messageHandler");

            this.messageFamily  = family;
            this.messageHandler = messageHandler;
        }
示例#2
0
        public IssueCredentialV1_0(string forRelationship,
                                   string credDefId,
                                   Dictionary <string, string> values,
                                   string comment,
                                   string price,
                                   bool?autoIssue,
                                   bool byInvitation)
        {
            DbcUtil.requireNotNull(forRelationship, "forRelationship");
            DbcUtil.requireNotNull(credDefId, "credDefId");

            this.forRelationship = forRelationship;
            this.credDefId       = credDefId;
            this.values          = values;
            this.comment         = comment;
            this.price           = price;
            this.autoIssue       = autoIssue;
            this.byInvitation    = byInvitation;
            this.created         = true;
        }