Exemplo n.º 1
0
 private void DeleteByParentSpaceIdCompletedCmd(RequestActor.RequestCompleted cmd)
 {
     if (cmd.Result.GetType() == typeof(EntityTypeActor.DeleteIf_Success))
     {
         cmd.Request.Requestor.Tell(new DeleteByParentOrgId_Success());
     }
     else
     {
         Unhandled(cmd);
     }
 }
Exemplo n.º 2
0
 private void DeleteAllCompletedCmd(RequestActor.RequestCompleted cmd)
 {
     if (cmd.Result.GetType() == typeof(EntityTypeActor.DeleteAll_Success))
     {
         cmd.Request.Requestor.Tell(new DeleteAll_Success());
     }
     else
     {
         Unhandled(cmd);
     }
 }
Exemplo n.º 3
0
 private void GetAllCompletedCmd(RequestActor.RequestCompleted cmd)
 {
     if (cmd.Result is IEnumerable <IDataType> )
     {
         cmd.Request.Requestor.Tell(cmd.Result);
     }
     else
     {
         Unhandled(cmd);
     }
 }
Exemplo n.º 4
0
 private void CreateCompletedCmd(RequestActor.RequestCompleted cmd)
 {
     if (cmd.Result.GetType() == typeof(EntityTypeActor.Create_IdExists))
     {
         cmd.Request.Requestor.Tell(new Create_IdExists());
     }
     else if (cmd.Result.GetType() == typeof(EntityTypeActor.Create_Success))
     {
         EntityTypeActor.Create_Success successResult = (EntityTypeActor.Create_Success)cmd.Result;
         cmd.Request.Requestor.Tell(new Create_Success(successResult.Id));
     }
     else
     {
         Unhandled(cmd);
     }
 }
Exemplo n.º 5
0
 private void GetByIdCompletedCmd(RequestActor.RequestCompleted cmd)
 {
     if (cmd.Result.GetType() == typeof(EntityTypeActor.GetById_IdDeleted))
     {
         cmd.Request.Requestor.Tell(new GetById_IdDeleted());
     }
     else if (cmd.Result.GetType() == typeof(EntityTypeActor.GetById_IdNotFound))
     {
         cmd.Request.Requestor.Tell(new GetById_IdNotFound());
     }
     else if (cmd.Result.GetType() == typeof(IDataType))
     {
         cmd.Request.Requestor.Tell(cmd.Result);
     }
     else
     {
         Unhandled(cmd);
     }
 }
Exemplo n.º 6
0
 private void DeleteByIdCompletedCmd(RequestActor.RequestCompleted cmd)
 {
     if (cmd.Result.GetType() == typeof(EntityTypeActor.DeleteById_IdAlreadyDeleted))
     {
         cmd.Request.Requestor.Tell(new DeleteById_IdAlreadyDeleted());
     }
     else if (cmd.Result.GetType() == typeof(EntityTypeActor.DeleteById_IdNotFound))
     {
         cmd.Request.Requestor.Tell(new DeleteById_IdNotFound());
     }
     else if (cmd.Result.GetType() == typeof(EntityTypeActor.DeleteById_Success))
     {
         EntityTypeActor.DeleteById_Success successResult = (EntityTypeActor.DeleteById_Success)cmd.Result;
         cmd.Request.Requestor.Tell(new DeleteById_Success(successResult.Id));
     }
     else
     {
         Unhandled(cmd);
     }
 }
Exemplo n.º 7
0
 private void GetByParentSpaceIdCompletedCmd(RequestActor.RequestCompleted cmd)
 {
     cmd.Request.Requestor.Tell(cmd.Result);
 }
Exemplo n.º 8
0
 private void GetIfCompletedCmd(RequestActor.RequestCompleted cmd)
 {
     cmd.Request.Requestor.Tell(cmd.Result);
 }