Exemplo n.º 1
0
        public void Request(ClientRequestType requestType)
        {
            if (!object.Equals(RequestType, requestType))
            {
                var requestId = Guid.NewGuid().ToString();

                RequestId   = requestId;
                RequestType = requestType;
                IsAccepted  = false;

                OnRequested(requestId, requestType);
            }
        }
Exemplo n.º 2
0
        private void OnRequested(string requestId, ClientRequestType requestType)
        {
            var ev = new ClientRequestCreatedEvent(this, ClientId, requestId, requestType);

            AddDomainEvent(ev);
        }