private void DeleteByParentSpaceIdCompletedCmd(RequestActor.RequestCompleted cmd) { if (cmd.Result.GetType() == typeof(EntityTypeActor.DeleteIf_Success)) { cmd.Request.Requestor.Tell(new DeleteByParentOrgId_Success()); } else { Unhandled(cmd); } }
private void DeleteAllCompletedCmd(RequestActor.RequestCompleted cmd) { if (cmd.Result.GetType() == typeof(EntityTypeActor.DeleteAll_Success)) { cmd.Request.Requestor.Tell(new DeleteAll_Success()); } else { Unhandled(cmd); } }
private void GetAllCompletedCmd(RequestActor.RequestCompleted cmd) { if (cmd.Result is IEnumerable <IDataType> ) { cmd.Request.Requestor.Tell(cmd.Result); } else { Unhandled(cmd); } }
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); } }
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); } }
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); } }
private void GetByParentSpaceIdCompletedCmd(RequestActor.RequestCompleted cmd) { cmd.Request.Requestor.Tell(cmd.Result); }
private void GetIfCompletedCmd(RequestActor.RequestCompleted cmd) { cmd.Request.Requestor.Tell(cmd.Result); }