Example #1
0
 /// <summary>
 /// Creates a new <see cref="ResourceEventDefinition{TResource, TDomain}" /> with a change type
 /// of <see cref="ResourceEventChangeType.Deleted" /> and an event sub id of <c>deleted</c>.
 /// </summary>
 /// <returns>A new resource event definition.</returns>
 public ResourceEventDefinition <TResource> Deleted()
 {
     return(new ResourceEventDefinition <TResource>(
                ResourceEventChangeType.Deleted,
                ResourceEvent <TResource> .CreateId("deleted"),
                this._mapper));
 }
Example #2
0
 /// <summary>
 /// Creates a new <see cref="ResourceEventDefinition{TResource, TDomain}" /> with a change type
 /// of <see cref="ResourceEventChangeType.Updated" /> and the given event sub id.
 /// </summary>
 /// <param name="eventSubId">The "sub" ID, unique within a resource's event namespace.</param>
 /// <returns>A new resource event definition.</returns>
 public ResourceEventDefinition <TResource> Updated(string eventSubId)
 {
     return(new ResourceEventDefinition <TResource>(
                ResourceEventChangeType.Updated,
                ResourceEvent <TResource> .CreateId(eventSubId),
                this._mapper));
 }
Example #3
0
 /// <summary>
 /// Creates a new <see cref="ResourceEventDefinitionWithMapper{TResource, TDomain}" /> with a change type
 /// of <see cref="ResourceEventChangeType.Deleted" /> and the given event sub id.
 /// </summary>
 /// <param name="eventSubId">The "sub" ID, unique within a resource's event namespace.</param>
 /// <returns>A new resource event definition.</returns>
 public TReturn Deleted(string eventSubId)
 {
     return(this.Create(
                ResourceEventChangeType.Deleted,
                ResourceEvent <TResource> .CreateId(eventSubId)));
 }
Example #4
0
 /// <summary>
 /// Creates a new <see cref="ResourceEventDefinitionWithMapper{TResource, TDomain}" /> with a change type
 /// of <see cref="ResourceEventChangeType.Deleted" /> and an event sub id of <c>deleted</c>.
 /// </summary>
 /// <returns>A new resource event definition.</returns>
 public TReturn Deleted()
 {
     return(this.Create(
                ResourceEventChangeType.Deleted,
                ResourceEvent <TResource> .CreateId("deleted")));
 }
Example #5
0
 /// <summary>
 /// Creates a new <see cref="ResourceEventDefinitionWithMapper{TResource, TDomain}" /> with a change type
 /// of <see cref="ResourceEventChangeType.Updated" /> and an event sub id of <c>updated</c>.
 /// </summary>
 /// <returns>A new resource event definition.</returns>
 public TReturn Updated()
 {
     return(this.Create(
                ResourceEventChangeType.Updated,
                ResourceEvent <TResource> .CreateId("updated")));
 }